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)
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>

No differences found