Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f427e5f1 authored by Thomas Schlichter's avatar Thomas Schlichter Committed by Rafael J. Wysocki
Browse files

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: default avatarThomas Schlichter <thomas.schlichter@web.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 631e8ac1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1152,6 +1152,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 */