Re: [PATCH][resubmit] sched: minor optimizations in wake_affineand select_task_rq_fair

From: Ingo Molnar
Date: Tue Sep 30 2008 - 09:26:41 EST



* Amit K. Arora <aarora@xxxxxxxxxxxxxxxxxx> wrote:

> As mentioned in http://lkml.org/lkml/2008/9/30/141 , this is the new
> patch.
>
> sched: Minor optimizations in wake_affine and select_task_rq_fair
>
> This patch does following:
> o Removes unused variable and argument "rq".
> o Optimizes one of the "if" conditions in wake_affine() - i.e. if
> "balanced" is true, we need not do rest of the calculations in the
> condition.
> o If this cpu is same as the previous cpu (on which woken up task
> was running when it went to sleep), no need to call wake_affine at all.
>
> Signed-off-by: Amit K Arora <aarora@xxxxxxxxxxxxxxxxxx>
> CC: Srivatsa Vaddagiri <vatsa@xxxxxxxxxxxxxxxxxx>
> CC: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
> CC: Ingo Molnar <mingo@xxxxxxx>

applied to tip/sched/devel, thanks Amit!

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