Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1205968 > unrolled thread

Re: [PATCH v2] sched,fair: Remove > u32 weight handling for delta

Started byAfzal Mohammed <afzal.mohd.ma@gmail.com>
First post2015-08-12 13:20 +0200
Last post2015-08-12 13:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2] sched,fair: Remove > u32 weight handling for delta Afzal Mohammed <afzal.mohd.ma@gmail.com> - 2015-08-12 13:20 +0200

#1205968 — Re: [PATCH v2] sched,fair: Remove > u32 weight handling for delta

FromAfzal Mohammed <afzal.mohd.ma@gmail.com>
Date2015-08-12 13:20 +0200
SubjectRe: [PATCH v2] sched,fair: Remove > u32 weight handling for delta
Message-ID<pWCeC-2Kj-19@gated-at.bofh.it>
Hi Peter,

On Mon, Jul 06, 2015 at 11:49:15PM +0530, Afzal Mohammed wrote:
> scaled down weight 'fact' would not be > u32 rather than unlikely as the
> weight being passed in __calc_delta() is either 'se->load.weight' or
> NICE_O_LOAD. 'se->load.weight' would be one of the values of
> prio_to_weight[] in the case of task, while in the case of task group it
> would be capped to MAX_SHARES. All those possible values can fit in u32.
> Hence remove the initial > u32 handling on 'fact'.
> 
> Signed-off-by: Afzal Mohammed <afzal.mohd.ma@gmail.com>
> ---
> 
> v2: expand change log on why weight can fit in u32, remove incorrect
>     comments.
> 
>  kernel/sched/fair.c | 7 -------
>  1 file changed, 7 deletions(-)

bool __weak patch_adds_some_value(void)
{
        return (~3 asm instruction less for calc_delta) && (less LOC);
}

if (patch_adds_some_value() && revised_message_okay())
        please help $subject reach mainline;

Regards
Afzal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web