]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sched: minor optimizations in wake_affine and select_task_rq_fair
authorAmit K. Arora <aarora@linux.vnet.ibm.com>
Tue, 30 Sep 2008 11:45:39 +0000 (17:15 +0530)
committerIngo Molnar <mingo@elte.hu>
Tue, 30 Sep 2008 13:25:44 +0000 (15:25 +0200)
commit64b9e0294d24a4204232e13e01630b0690e48d61
treea8399f65354ffe0777f78e169fd7be763148c121
parentb87f17242da6b2ac6db2d179b2f93fb84cff2fbe
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>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c