|
@@ -1071,9 +1071,9 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr)
|
|
|
|
|
|
if (pr->id == 0 && cpuidle_get_driver() == &acpi_idle_driver) {
|
|
if (pr->id == 0 && cpuidle_get_driver() == &acpi_idle_driver) {
|
|
|
|
|
|
- cpuidle_pause_and_lock();
|
|
|
|
/* Protect against cpu-hotplug */
|
|
/* Protect against cpu-hotplug */
|
|
get_online_cpus();
|
|
get_online_cpus();
|
|
|
|
+ cpuidle_pause_and_lock();
|
|
|
|
|
|
/* Disable all cpuidle devices */
|
|
/* Disable all cpuidle devices */
|
|
for_each_online_cpu(cpu) {
|
|
for_each_online_cpu(cpu) {
|
|
@@ -1100,8 +1100,8 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr)
|
|
cpuidle_enable_device(dev);
|
|
cpuidle_enable_device(dev);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- put_online_cpus();
|
|
|
|
cpuidle_resume_and_unlock();
|
|
cpuidle_resume_and_unlock();
|
|
|
|
+ put_online_cpus();
|
|
}
|
|
}
|
|
|
|
|
|
return 0;
|
|
return 0;
|