aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorToshi Kani <[email protected]>2013-11-12 15:08:12 -0800
committerLinus Torvalds <[email protected]>2013-11-13 12:09:09 +0900
commitd7e0b37a87c39f5c02dd7b5d55c7a3ec2f65b943 (patch)
tree15ded33cf0301497fa2dadf03bbb72f338596ac9 /tools/perf/scripts/python
parentc5320926e370b4cfb8f10c2169e26f960079cf67 (diff)
mm: set N_CPU to node_states during boot
After a system booted, N_CPU is not set to any node as has_cpu shows an empty line. # cat /sys/devices/system/node/has_cpu (show-empty-line) setup_vmstat() registers its CPU notifier callback, vmstat_cpuup_callback(), which marks N_CPU to a node when a CPU is put into online. However, setup_vmstat() is called after all CPUs are launched in the boot sequence. Changed setup_vmstat() to mark N_CPU to the nodes with online CPUs at boot, which is consistent with other operations in vmstat_cpuup_callback(), i.e. start_cpu_timer() and refresh_zone_stat_thresholds(). Also added get_online_cpus() to protect the for_each_online_cpu() loop. Signed-off-by: Toshi Kani <[email protected]> Acked-by: Christoph Lameter <[email protected]> Reviewed-by: Yasuaki Ishimatsu <[email protected]> Tested-by: Yasuaki Ishimatsu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions