diff options
author | Suresh Siddha <[email protected]> | 2012-01-19 18:28:57 -0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2012-01-26 19:38:13 +0100 |
commit | 71325960d16cd68ea0e22a8da15b2495b0f363f7 (patch) | |
tree | 38be96d9232b302780476899f8536e690c693ffb /lib/mpi/mpi-scan.c | |
parent | db7e527da41560f597ccdc4417cefa6b7657c0c0 (diff) |
sched/nohz: Fix nohz cpu idle load balancing state with cpu hotplug
With the recent nohz scheduler changes, rq's nohz flag
'NOHZ_TICK_STOPPED' and its associated state doesn't get cleared
immediately after the cpu exits idle. This gets cleared as part
of the next tick seen on that cpu.
For the cpu offline support, we need to clear this state
manually. Fix it by registering a cpu notifier, which clears the
nohz idle load balance state for this rq explicitly during the
CPU_DYING notification.
There won't be any nohz updates for that cpu, after the
CPU_DYING notification. But lets be extra paranoid and skip
updating the nohz state in the select_nohz_load_balancer() if
the cpu is not in active state anymore.
Reported-by: Srivatsa S. Bhat <[email protected]>
Reviewed-and-tested-by: Srivatsa S. Bhat <[email protected]>
Tested-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Suresh Siddha <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-scan.c')
0 files changed, 0 insertions, 0 deletions