summaryrefslogtreecommitdiffstats
path: root/kernel/time
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2012-09-06 00:03:50 +0200
committerIngo Molnar <mingo@kernel.org>2012-09-13 16:52:05 +0200
commit08bedae1d0acd8c9baf514fb69fa199d0c8345f6 (patch)
tree82cda177bc9c52658d350c9686ea2b8b07b8ee5b /kernel/time
parentsched: Remove __ARCH_WANT_INTERRUPTS_ON_CTXSW (diff)
downloadlinux-08bedae1d0acd8c9baf514fb69fa199d0c8345f6.tar.xz
linux-08bedae1d0acd8c9baf514fb69fa199d0c8345f6.zip
sched: Fix load avg vs. cpu-hotplug
Commit f319da0c68 ("sched: Fix load avg vs cpu-hotplug") was an incomplete fix: In particular, the problem is that at the point it calls calc_load_migrate() nr_running := 1 (the stopper thread), so move the call to CPU_DEAD where we're sure that nr_running := 0. Also note that we can call calc_load_migrate() without serialization, we know the state of rq is stable since its cpu is dead, and we modify the global state using appropriate atomic ops. Suggested-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1346882630.2600.59.camel@twins Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/time')
0 files changed, 0 insertions, 0 deletions