diff options
author | 2008-09-30 17:15:39 +0530 | |
---|---|---|
committer | 2008-09-30 15:25:44 +0200 | |
commit | 64b9e0294d24a4204232e13e01630b0690e48d61 (patch) | |
tree | a8399f65354ffe0777f78e169fd7be763148c121 /net/unix/af_unix.c | |
parent | sched: maintain only task entities in cfs_rq->tasks list (diff) | |
download | wireguard-linux-64b9e0294d24a4204232e13e01630b0690e48d61.tar.xz wireguard-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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions