From: Peter Zijlstra Date: Wed, 23 Dec 2009 14:10:31 +0000 (+0100) Subject: sched: Unify load_balance{,_newidle}() X-Git-Tag: v2.6.34-rc1~260^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1af3ed3ddf27499c3f57662c4c29871e2b95e5f9;p=pandora-kernel.git 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 LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed