[PATCH v2 0/3] ACPI: processor: idle: Clean up max_cstate update logic

Huisong Li posted 3 patches 3 weeks, 6 days ago
drivers/acpi/processor_idle.c | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
[PATCH v2 0/3] ACPI: processor: idle: Clean up max_cstate update logic
Posted by Huisong Li 3 weeks, 6 days ago
The acpi_processor_cstate_first_run_checks() just need to call once
in acpi_processor_register_idle_driver().  This series cleans up the
redundant calls and internal guards.

---
Changes in v2:
- Add a new patch which move max_cstate update out of the loop in
  acpi_processor_register_idle_driver.

---
Huisong Li (3):
  ACPI: processor: idle: Remove redundant cstate check in acpi_processor_power_init
  ACPI: processor: idle: Move max_cstate update out of the loop
  ACPI: processor: idle: Remove redundant static variable and rename cstate check function

 drivers/acpi/processor_idle.c | 15 ++++-----------
 1 file changed, 4 insertions(+), 11 deletions(-)

-- 
2.33.0
Re: [PATCH v2 0/3] ACPI: processor: idle: Clean up max_cstate update logic
Posted by Rafael J. Wysocki 3 weeks, 6 days ago
On Wed, Mar 11, 2026 at 7:50 AM Huisong Li <lihuisong@huawei.com> wrote:
>
> The acpi_processor_cstate_first_run_checks() just need to call once
> in acpi_processor_register_idle_driver().  This series cleans up the
> redundant calls and internal guards.
>
> ---
> Changes in v2:
> - Add a new patch which move max_cstate update out of the loop in
>   acpi_processor_register_idle_driver.
>
> ---
> Huisong Li (3):
>   ACPI: processor: idle: Remove redundant cstate check in acpi_processor_power_init
>   ACPI: processor: idle: Move max_cstate update out of the loop
>   ACPI: processor: idle: Remove redundant static variable and rename cstate check function
>
>  drivers/acpi/processor_idle.c | 15 ++++-----------
>  1 file changed, 4 insertions(+), 11 deletions(-)
>
> --

Applied as 7.1 material, thanks!