]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/acpi/processor_idle.c
Merge branches 'idle-fix' and 'misc' into release
[~shefty/rdma-dev.git] / drivers / acpi / processor_idle.c
index 784f9a7beb1731cda846e3256b6bc85f378982a8..f3decb30223fd1b376775310ae25dec63424f920 100644 (file)
@@ -1190,8 +1190,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr)
         * to make the code that updates C-States be called once.
         */
 
-       if (smp_processor_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 */