sched: Fix and clean up rate-limit newidle code
authorMike Galbraith <efault@gmx.de>
Tue, 10 Nov 2009 02:50:02 +0000 (03:50 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Nov 2009 03:25:58 +0000 (04:25 +0100)
commiteae0c9dfb534cb3449888b9601228efa6480fdb5
tree760b553398c783088950c007ca6a213328a7e5c6
parentd8c80ce091f6ead6710bc71b58f2c32e5bf855e4
sched: Fix and clean up rate-limit newidle code

Commit 1b9508f, "Rate-limit newidle" has been confirmed to fix
the netperf UDP loopback regression reported by Alex Shi.

This is a cleanup and a fix:

 - moved to a more out of the way spot

 - fix to ensure that balancing doesn't try to balance
   runqueues which haven't gone online yet, which can
   mess up CPU enumeration during boot.

Reported-by: Alex Shi <alex.shi@intel.com>
Reported-by: Zhang, Yanmin <yanmin_zhang@linux.intel.com>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: <stable@kernel.org> # .32.x: a1f84a3: sched: Check for an idle shared cache
Cc: <stable@kernel.org> # .32.x: 1b9508f: sched: Rate-limit newidle
Cc: <stable@kernel.org> # .32.x: fd21073: sched: Fix affinity logic
Cc: <stable@kernel.org> # .32.x
LKML-Reference: <1257821402.5648.17.camel@marge.simson.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c