aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>2010-09-09 19:38:14 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-09-09 21:57:25 -0400
commit5ee28a447625b9fe64fbf7cff026561084fc5f16 (patch)
tree345e3afc3ce70af1892ce1c0ec953b68ef8a1770
parent3ab04d5cf9736b7a4e9dfcf28285d8663b01aa0e (diff)
vmstat: update zone stat threshold when onlining a cpu
refresh_zone_stat_thresholds() calculates parameter based on the number of online cpus. It's called at cpu offlining but needs to be called at onlining, too. Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Christoph Lameter <cl@linux-foundation.org> Acked-by: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--mm/vmstat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c
index f389168f9a83..a8d6b59e609a 100644
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -998,6 +998,7 @@ static int __cpuinit vmstat_cpuup_callback(struct notifier_block *nfb,
998 switch (action) { 998 switch (action) {
999 case CPU_ONLINE: 999 case CPU_ONLINE:
1000 case CPU_ONLINE_FROZEN: 1000 case CPU_ONLINE_FROZEN:
1001 refresh_zone_stat_thresholds();
1001 start_cpu_timer(cpu); 1002 start_cpu_timer(cpu);
1002 node_set_state(cpu_to_node(cpu), N_CPU); 1003 node_set_state(cpu_to_node(cpu), N_CPU);
1003 break; 1004 break;