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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Feb 2013 04:33:39 +0000 (04:33 +0000)
commit4b4b641bd7aa89d8c9827e9e73b3efc9a0fd4713
tree80de8d67210f05de894aa2592f69b6ed49e57ff2
parent8d535aa140cc74ae7f8b009e8a672820d8d15d16
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 <thomas.schlichter@web.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/acpi/processor_idle.c