diff options
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_intel_uncore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c index 047f540cf3f7..28922f62eb29 100644 --- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c +++ b/arch/x86/kernel/cpu/perf_event_intel_uncore.c | |||
@@ -3817,7 +3817,7 @@ static int __init uncore_cpu_init(void) | |||
3817 | if (ret) | 3817 | if (ret) |
3818 | return ret; | 3818 | return ret; |
3819 | 3819 | ||
3820 | get_online_cpus(); | 3820 | cpu_notifier_register_begin(); |
3821 | 3821 | ||
3822 | for_each_online_cpu(cpu) { | 3822 | for_each_online_cpu(cpu) { |
3823 | int i, phys_id = topology_physical_package_id(cpu); | 3823 | int i, phys_id = topology_physical_package_id(cpu); |
@@ -3836,9 +3836,9 @@ static int __init uncore_cpu_init(void) | |||
3836 | } | 3836 | } |
3837 | on_each_cpu(uncore_cpu_setup, NULL, 1); | 3837 | on_each_cpu(uncore_cpu_setup, NULL, 1); |
3838 | 3838 | ||
3839 | register_cpu_notifier(&uncore_cpu_nb); | 3839 | __register_cpu_notifier(&uncore_cpu_nb); |
3840 | 3840 | ||
3841 | put_online_cpus(); | 3841 | cpu_notifier_register_done(); |
3842 | 3842 | ||
3843 | return 0; | 3843 | return 0; |
3844 | } | 3844 | } |