Skip to content

Commit db19103

Browse files
LiHuiSong1rafaeljw
authored andcommitted
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>
1 parent 638a951 commit db19103

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/acpi/processor_idle.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,8 +1411,6 @@ void acpi_processor_power_init(struct acpi_processor *pr)
14111411
if (disabled_by_idle_boot_param())
14121412
return;
14131413

1414-
acpi_processor_cstate_first_run_checks();
1415-
14161414
if (!acpi_processor_get_power_info(pr))
14171415
pr->flags.power_setup_done = 1;
14181416

0 commit comments

Comments
 (0)