|
@@ -300,7 +300,7 @@ static int __init topology_init(void)
|
|
|
|
|
|
check_mmu_stats();
|
|
check_mmu_stats();
|
|
|
|
|
|
- register_cpu_notifier(&sysfs_cpu_nb);
|
|
|
|
|
|
+ cpu_notifier_register_begin();
|
|
|
|
|
|
for_each_possible_cpu(cpu) {
|
|
for_each_possible_cpu(cpu) {
|
|
struct cpu *c = &per_cpu(cpu_devices, cpu);
|
|
struct cpu *c = &per_cpu(cpu_devices, cpu);
|
|
@@ -310,6 +310,10 @@ static int __init topology_init(void)
|
|
register_cpu_online(cpu);
|
|
register_cpu_online(cpu);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ __register_cpu_notifier(&sysfs_cpu_nb);
|
|
|
|
+
|
|
|
|
+ cpu_notifier_register_done();
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|