aboutsummaryrefslogtreecommitdiff
path: root/kernel/sched_rt.c
diff options
context:
space:
mode:
authorAmit K. Arora <aarora@linux.vnet.ibm.com>2008-09-30 17:15:39 +0530
committerIngo Molnar <mingo@elte.hu>2008-09-30 15:25:44 +0200
commit64b9e0294d24a4204232e13e01630b0690e48d61 (patch)
treea8399f65354ffe0777f78e169fd7be763148c121 /kernel/sched_rt.c
parentb87f17242da6b2ac6db2d179b2f93fb84cff2fbe (diff)
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>
Diffstat (limited to 'kernel/sched_rt.c')
0 files changed, 0 insertions, 0 deletions