diff options
-rw-r--r-- | mm/vmstat.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mm/vmstat.c b/mm/vmstat.c index 9bb314577911..0a1f7de972b3 100644 --- a/mm/vmstat.c +++ b/mm/vmstat.c | |||
@@ -1276,8 +1276,12 @@ static int __init setup_vmstat(void) | |||
1276 | 1276 | ||
1277 | register_cpu_notifier(&vmstat_notifier); | 1277 | register_cpu_notifier(&vmstat_notifier); |
1278 | 1278 | ||
1279 | for_each_online_cpu(cpu) | 1279 | get_online_cpus(); |
1280 | for_each_online_cpu(cpu) { | ||
1280 | start_cpu_timer(cpu); | 1281 | start_cpu_timer(cpu); |
1282 | node_set_state(cpu_to_node(cpu), N_CPU); | ||
1283 | } | ||
1284 | put_online_cpus(); | ||
1281 | #endif | 1285 | #endif |
1282 | #ifdef CONFIG_PROC_FS | 1286 | #ifdef CONFIG_PROC_FS |
1283 | proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations); | 1287 | proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations); |