]> git.ipfire.org Git - thirdparty/kernel/linux.git/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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 11 Mar 2026 18:25:14 +0000 (19:25 +0100)
commitdb19103ea847ed139da59a2fb71773081c12cd40
tree7fdb9389285bd10f205bb2e2fdb4c9d203a1dd8c
parent638a95168fd53a911201681cd5e55c7965b20733
ACPI: processor: idle: Remove redundant cstate check in acpi_processor_power_init

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>
drivers/acpi/processor_idle.c