diff options
author | Amit K. Arora <aarora@linux.vnet.ibm.com> | 2008-09-30 13:45:39 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-30 15:25:44 +0200 |
commit | 64b9e0294d24a4204232e13e01630b0690e48d61 (patch) | |
tree | a8399f65354ffe0777f78e169fd7be763148c121 /kernel/sched_rt.c | |
parent | sched: maintain only task entities in cfs_rq->tasks list (diff) | |
download | linux-64b9e0294d24a4204232e13e01630b0690e48d61.tar.xz linux-64b9e0294d24a4204232e13e01630b0690e48d61.zip |
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