sched: skip updating rq's next_balance under null SD
authorSuresh Siddha <suresh.b.siddha@intel.com>
Thu, 23 Aug 2007 13:18:02 +0000 (15:18 +0200)
committerIngo Molnar <mingo@elte.hu>
Thu, 23 Aug 2007 13:18:02 +0000 (15:18 +0200)
commitf549da848eca595abca14ebc5e1bf00fd72aa53d
tree25069c378b06c23f9f12a9e08c8f670d899f188b
parentf8700df7c419781efb34696de7e7f49717f8ede7
sched: skip updating rq's next_balance under null SD

Was playing with sched_smt_power_savings/sched_mc_power_savings and
found out that while the scheduler domains are reconstructed when sysfs
settings change, rebalance_domains() can get triggered with null domain
on other cpus, which is setting next_balance to jiffies + 60*HZ.
Resulting in no idle/busy balancing for 60 seconds.

Fix this.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c