Commit 4b4b641b authored by Thomas Schlichter's avatar Thomas Schlichter Committed by Ben Hutchings

ACPI / processor: Get power info before updating the C-states

commit f427e5f1 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: default avatarThomas Schlichter <thomas.schlichter@web.de>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 8d535aa1
...@@ -1178,6 +1178,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr) ...@@ -1178,6 +1178,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr)
} }
/* Populate Updated C-state information */ /* Populate Updated C-state information */
acpi_processor_get_power_info(pr);
acpi_processor_setup_cpuidle_states(pr); acpi_processor_setup_cpuidle_states(pr);
/* Enable all cpuidle devices */ /* Enable all cpuidle devices */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment