From: Sisir Koppaka Date: Sat, 26 Mar 2011 12:52:55 +0000 (+0530) Subject: sched: Fix rebalance interval calculation X-Git-Tag: v2.6.39-rc2~20^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3436ae1298cb22d722a6520fc97f112dd767a9e1;p=pandora-kernel.git sched: Fix rebalance interval calculation The interval for checking scheduling domains if they are due to be balanced currently depends on boot state NR_CPUS, which may not accurately reflect the number of online CPUs at the time of check. Thus replace NR_CPUS with num_online_cpus(). (ed: Should only affect those who set NR_CPUS really high, such as 4096 or so :-) Signed-off-by: Sisir Koppaka Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed