|
@@ -1292,14 +1292,14 @@ static int __init setup_vmstat(void)
|
|
#ifdef CONFIG_SMP
|
|
#ifdef CONFIG_SMP
|
|
int cpu;
|
|
int cpu;
|
|
|
|
|
|
- register_cpu_notifier(&vmstat_notifier);
|
|
|
|
|
|
+ cpu_notifier_register_begin();
|
|
|
|
+ __register_cpu_notifier(&vmstat_notifier);
|
|
|
|
|
|
- get_online_cpus();
|
|
|
|
for_each_online_cpu(cpu) {
|
|
for_each_online_cpu(cpu) {
|
|
start_cpu_timer(cpu);
|
|
start_cpu_timer(cpu);
|
|
node_set_state(cpu_to_node(cpu), N_CPU);
|
|
node_set_state(cpu_to_node(cpu), N_CPU);
|
|
}
|
|
}
|
|
- put_online_cpus();
|
|
|
|
|
|
+ cpu_notifier_register_done();
|
|
#endif
|
|
#endif
|
|
#ifdef CONFIG_PROC_FS
|
|
#ifdef CONFIG_PROC_FS
|
|
proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations);
|
|
proc_create("buddyinfo", S_IRUGO, NULL, &fragmentation_file_operations);
|