]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: processor: idle: Move max_cstate update out of the loop
authorHuisong Li <lihuisong@huawei.com>
Wed, 11 Mar 2026 06:50:37 +0000 (14:50 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 Mar 2026 18:26:13 +0000 (19:26 +0100)
commit1f23194c8b8208bf3a43beb6c97d4c843197b6f6
treef90a012e93a3082662f08c3b165dad6fe32bc51d
parentdb19103ea847ed139da59a2fb71773081c12cd40
ACPI: processor: idle: Move max_cstate update out of the loop

The acpi_processor_cstate_first_run_checks() function, which updates
max_cstate on certain platforms, only needs to be executed once.

Move this call outside of the loop to avoid redundant executions.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Link: https://patch.msgid.link/20260311065038.4151558-3-lihuisong@huawei.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_idle.c