|
@@ -975,7 +975,8 @@ static int __init topology_init(void)
|
|
|
int cpu;
|
|
|
|
|
|
register_nodes();
|
|
|
- register_cpu_notifier(&sysfs_cpu_nb);
|
|
|
+
|
|
|
+ cpu_notifier_register_begin();
|
|
|
|
|
|
for_each_possible_cpu(cpu) {
|
|
|
struct cpu *c = &per_cpu(cpu_devices, cpu);
|
|
@@ -999,6 +1000,11 @@ static int __init topology_init(void)
|
|
|
if (cpu_online(cpu))
|
|
|
register_cpu_online(cpu);
|
|
|
}
|
|
|
+
|
|
|
+ __register_cpu_notifier(&sysfs_cpu_nb);
|
|
|
+
|
|
|
+ cpu_notifier_register_done();
|
|
|
+
|
|
|
#ifdef CONFIG_PPC64
|
|
|
sysfs_create_dscr_default();
|
|
|
#endif /* CONFIG_PPC64 */
|