ACPI / processor: Get power info before updating the C-states
authorThomas Schlichter <thomas.schlichter@web.de>
Fri, 18 Jan 2013 23:28:22 +0000 (00:28 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 18 Jan 2013 23:28:22 +0000 (00:28 +0100)
acpi_processor_get_power_info() has to be called before
acpi_processor_setup_cpuidle_states() to have the latest
information available. This fixes the missing C-state information
after AC-->DC transition.

Signed-off-by: Thomas Schlichter <thomas.schlichter@web.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_idle.c

index fea6f8d71fa37572f85529c15c766908a397cadc..ed9a1cc690be5fa8cd3844394128216350904a7e 100644 (file)
@@ -1152,6 +1152,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr)
                }
 
                /* Populate Updated C-state information */
+               acpi_processor_get_power_info(pr);
                acpi_processor_setup_cpuidle_states(pr);
 
                /* Enable all cpuidle devices */