From: Peter Zijlstra Date: Tue, 5 Apr 2011 08:14:25 +0000 (+0200) Subject: sched: Clean up rebalance_domains() load-balance interval calculation X-Git-Tag: v2.6.39-rc3~17^3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49c022e657fbe661460d191fbe776a387132e2b3;p=pandora-kernel.git sched: Clean up rebalance_domains() load-balance interval calculation Instead of the possible multiple-evaluation of num_online_cpus() in rebalance_domains() that Linus reported, avoid it altogether in the normal case since it's implemented with a Hamming weight function over a cpu bitmask which can be darn expensive for those with big iron. This also makes it cleaner, smaller and documents the code. Reported-by: Linus Torvalds Signed-off-by: Peter Zijlstra LKML-Reference: <1301991265.2225.12.camel@twins> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed