diff options
author | Thomas Schlichter <thomas.schlichter@web.de> | 2013-01-18 18:28:22 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-01-18 18:28:22 -0500 |
commit | f427e5f1cf75bba84cccdac1d8a90552d9ae1065 (patch) | |
tree | 4f966d61860dd14726d67e994d29d7377d8aa95d /drivers | |
parent | 631e8ac18fd59722e7ceb15fceeef3f368c250f9 (diff) |
ACPI / processor: Get power info before updating the C-states
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/processor_idle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index fea6f8d71fa3..ed9a1cc690be 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -1152,6 +1152,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr) | |||
1152 | } | 1152 | } |
1153 | 1153 | ||
1154 | /* Populate Updated C-state information */ | 1154 | /* Populate Updated C-state information */ |
1155 | acpi_processor_get_power_info(pr); | ||
1155 | acpi_processor_setup_cpuidle_states(pr); | 1156 | acpi_processor_setup_cpuidle_states(pr); |
1156 | 1157 | ||
1157 | /* Enable all cpuidle devices */ | 1158 | /* Enable all cpuidle devices */ |