diff options
author | Thomas Schlichter <thomas.schlichter@web.de> | 2013-01-19 00:28:22 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-27 20:47:44 -0800 |
commit | 54980d10c77318729ce2549635e3950fe338ba53 (patch) | |
tree | 83f88f2d8e8212e487648a88657eacee1851cd94 /drivers/acpi | |
parent | b8b02d1a89f6f0598d815476acce249a4b891020 (diff) | |
download | lwn-54980d10c77318729ce2549635e3950fe338ba53.tar.gz lwn-54980d10c77318729ce2549635e3950fe338ba53.zip |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/acpi')
-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 9d21cc7d440d..6cba4282588b 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -1208,6 +1208,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 */ |