diff options
-rw-r--r-- | arch/ia64/kernel/topology.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/ia64/kernel/topology.c b/arch/ia64/kernel/topology.c index ca69a5a96dcc..f295f9abba4b 100644 --- a/arch/ia64/kernel/topology.c +++ b/arch/ia64/kernel/topology.c | |||
@@ -454,12 +454,16 @@ static int __init cache_sysfs_init(void) | |||
454 | { | 454 | { |
455 | int i; | 455 | int i; |
456 | 456 | ||
457 | cpu_notifier_register_begin(); | ||
458 | |||
457 | for_each_online_cpu(i) { | 459 | for_each_online_cpu(i) { |
458 | struct device *sys_dev = get_cpu_device((unsigned int)i); | 460 | struct device *sys_dev = get_cpu_device((unsigned int)i); |
459 | cache_add_dev(sys_dev); | 461 | cache_add_dev(sys_dev); |
460 | } | 462 | } |
461 | 463 | ||
462 | register_hotcpu_notifier(&cache_cpu_notifier); | 464 | __register_hotcpu_notifier(&cache_cpu_notifier); |
465 | |||
466 | cpu_notifier_register_done(); | ||
463 | 467 | ||
464 | return 0; | 468 | return 0; |
465 | } | 469 | } |