|
@@ -394,7 +394,7 @@ static int intel_idle_probe(void)
|
|
|
if (boot_cpu_has(X86_FEATURE_ARAT)) /* Always Reliable APIC Timer */
|
|
|
lapic_timer_reliable_states = LAPIC_TIMER_ALWAYS_RELIABLE;
|
|
|
else {
|
|
|
- smp_call_function(__setup_broadcast_timer, (void *)true, 1);
|
|
|
+ on_each_cpu(__setup_broadcast_timer, (void *)true, 1);
|
|
|
register_cpu_notifier(&setup_broadcast_notifier);
|
|
|
}
|
|
|
|
|
@@ -471,7 +471,7 @@ static int intel_idle_cpuidle_driver_init(void)
|
|
|
}
|
|
|
|
|
|
if (auto_demotion_disable_flags)
|
|
|
- smp_call_function(auto_demotion_disable, NULL, 1);
|
|
|
+ on_each_cpu(auto_demotion_disable, NULL, 1);
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
@@ -568,7 +568,7 @@ static void __exit intel_idle_exit(void)
|
|
|
cpuidle_unregister_driver(&intel_idle_driver);
|
|
|
|
|
|
if (lapic_timer_reliable_states != LAPIC_TIMER_ALWAYS_RELIABLE) {
|
|
|
- smp_call_function(__setup_broadcast_timer, (void *)false, 1);
|
|
|
+ on_each_cpu(__setup_broadcast_timer, (void *)false, 1);
|
|
|
unregister_cpu_notifier(&setup_broadcast_notifier);
|
|
|
}
|
|
|
|