lkml.org 
[lkml]   [2008]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][resubmit] sched: minor optimizations in wake_affine and select_task_rq_fair

* Amit K. Arora <aarora@linux.vnet.ibm.com> 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@linux.vnet.ibm.com>
> CC: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
> CC: Peter Zijlstra <a.p.zijlstra@chello.nl>
> CC: Ingo Molnar <mingo@elte.hu>

applied to tip/sched/devel, thanks Amit!

Ingo


\
 
 \ /
  Last update: 2008-09-30 15:29    [W:0.113 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site