|
@@ -926,13 +926,13 @@ static __init int amd_ibs_init(void)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
perf_ibs_pm_init();
|
|
perf_ibs_pm_init();
|
|
- get_online_cpus();
|
|
|
|
|
|
+ cpu_notifier_register_begin();
|
|
ibs_caps = caps;
|
|
ibs_caps = caps;
|
|
/* make ibs_caps visible to other cpus: */
|
|
/* make ibs_caps visible to other cpus: */
|
|
smp_mb();
|
|
smp_mb();
|
|
- perf_cpu_notifier(perf_ibs_cpu_notifier);
|
|
|
|
smp_call_function(setup_APIC_ibs, NULL, 1);
|
|
smp_call_function(setup_APIC_ibs, NULL, 1);
|
|
- put_online_cpus();
|
|
|
|
|
|
+ __perf_cpu_notifier(perf_ibs_cpu_notifier);
|
|
|
|
+ cpu_notifier_register_done();
|
|
|
|
|
|
ret = perf_event_ibs_init();
|
|
ret = perf_event_ibs_init();
|
|
out:
|
|
out:
|