From: Thomas Schlichter Date: Fri, 18 Jan 2013 23:28:22 +0000 (+0100) Subject: ACPI / processor: Get power info before updating the C-states X-Git-Tag: v3.7.5~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=709084328e3a553ae6e27f5a8e826baecc3fd615;p=thirdparty%2Fkernel%2Fstable.git ACPI / processor: Get power info before updating the C-states commit f427e5f1cf75bba84cccdac1d8a90552d9ae1065 upstream. 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 Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index 2d674f8e12742..53dc25631d2da 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -1203,6 +1203,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 */