]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: clear N_CPU from node_states at CPU offline
authorToshi Kani <toshi.kani@hp.com>
Tue, 5 Nov 2013 05:55:52 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:52 +0000 (16:55 +1100)
commit8f04c36c732d7ded3081fe68bd855879fe203b54
treedde878e9df47340067e9efe983ecc17acdf41933
parent18c1e30ab0f420185dd161df0347968040fc4f25
mm: clear N_CPU from node_states at CPU offline

vmstat_cpuup_callback() is a CPU notifier callback, which marks N_CPU to a
node at CPU online event.  However, it does not update this N_CPU info at
CPU offline event.

Changed vmstat_cpuup_callback() to clear N_CPU when the last CPU in the
node is put into offline, i.e.  the node no longer has any online CPU.

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Acked-by: Christoph Lameter <cl@linux.com>
Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Tested-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmstat.c