summaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorSuresh Siddha2012-01-20 03:28:57 +0100
committerIngo Molnar2012-01-26 19:38:13 +0100
commit71325960d16cd68ea0e22a8da15b2495b0f363f7 (patch)
tree38be96d9232b302780476899f8536e690c693ffb /kernel/exit.c
parentsched/s390: Fix compile error in sched/core.c (diff)
downloadkernel-qcow2-linux-71325960d16cd68ea0e22a8da15b2495b0f363f7.tar.gz
kernel-qcow2-linux-71325960d16cd68ea0e22a8da15b2495b0f363f7.tar.xz
kernel-qcow2-linux-71325960d16cd68ea0e22a8da15b2495b0f363f7.zip
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 <srivatsa.bhat@linux.vnet.ibm.com> Reviewed-and-tested-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Tested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1327026538.16150.40.camel@sbsiddha-desk.sc.intel.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/exit.c')
0 files changed, 0 insertions, 0 deletions