diff options
author | 2009-12-23 15:10:31 +0100 | |
---|---|---|
committer | 2010-01-21 13:40:13 +0100 | |
commit | 1af3ed3ddf27499c3f57662c4c29871e2b95e5f9 (patch) | |
tree | 12e478c9ae078aa7efd8675564cffeb34708d074 /lib/debugobjects.c | |
parent | sched: Add a lock break for PREEMPT=y (diff) | |
download | wireguard-linux-1af3ed3ddf27499c3f57662c4c29871e2b95e5f9.tar.xz wireguard-linux-1af3ed3ddf27499c3f57662c4c29871e2b95e5f9.zip |
sched: Unify load_balance{,_newidle}()
load_balance() and load_balance_newidle() look remarkably similar, one
key point they differ in is the condition on when to active balance.
So split out that logic into a separate function.
One side effect is that previously load_balance_newidle() used to fail
and return -1 under these conditions, whereas now it doesn't. I've not
yet fully figured out the whole -1 return case for either
load_balance{,_newidle}().
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions