diff options
| author | Peter Zijlstra <[email protected]> | 2011-04-05 08:14:25 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2011-04-05 08:29:36 +0000 |
| commit | 49c022e657fbe661460d191fbe776a387132e2b3 (patch) | |
| tree | 487b713816a5ff3d81437aeecf111ffa414f6ede /drivers/mtd/lpddr/lpddr_cmds.c | |
| parent | Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/air... (diff) | |
| download | kernel-49c022e657fbe661460d191fbe776a387132e2b3.tar.gz kernel-49c022e657fbe661460d191fbe776a387132e2b3.zip | |
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 <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
LKML-Reference: <1301991265.2225.12.camel@twins>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions
