]> git.hungrycats.org Git - linux/commit
ACPI: processor: idle: Remove redundant cstate check in acpi_processor_power_init
authorHuisong Li <lihuisong@huawei.com>
Wed, 11 Mar 2026 06:50:36 +0000 (14:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2026 11:36:19 +0000 (13:36 +0200)
commitfcc577939931aa5a25266df80bc19cd033c33142
tree56689a86d6e8c2b78eae02557602c72856d3280c
parent8ddc1da7736443f3eb76104c4495028786373a31
ACPI: processor: idle: Remove redundant cstate check in acpi_processor_power_init

[ Upstream commit db19103ea847ed139da59a2fb71773081c12cd40 ]

The function acpi_processor_cstate_first_run_checks() is responsible
for updating max_cstate and performing initial hardware validation.

Currently, this function is invoked within acpi_processor_power_init().
However, the initialization flow already ensures this is called during
acpi_processor_register_idle_driver().  Therefore, the call in
acpi_processor_power_init() is redundant and effectively performs no work,
so remove it.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Link: https://patch.msgid.link/20260311065038.4151558-2-lihuisong@huawei.com
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Stable-dep-of: 66c62e6773c5 ("ACPI: processor: Add cpuidle driver check in acpi_processor_register_idle_driver()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/processor_idle.c