]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sched: Deal with low-load in wake_affine()
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Mon, 7 Sep 2009 16:28:05 +0000 (18:28 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 7 Sep 2009 18:39:06 +0000 (20:39 +0200)
commit71a29aa7b600595d0ef373ea605ac656876d1f2f
tree1288e5bd2bd4b5c599c2b8c7649c30987101a8ec
parentcdd2ab3de4301728b20efd6225681d3ff591a938
sched: Deal with low-load in wake_affine()

wake_affine() would always fail under low-load situations where
both prev and this were idle, because adding a single task will
always be a significant imbalance, even if there's nothing
around that could balance it.

Deal with this by allowing imbalance when there's nothing you
can do about it.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c