[PATCH v2 0/2] ACPI: processor: idle: Per-CPU idle driver for hybrid CPUs

Yaxiong Tian posted 2 patches 1 month, 3 weeks ago
drivers/acpi/Kconfig            |  1 +
drivers/acpi/processor_driver.c |  3 +-
drivers/acpi/processor_idle.c   | 66 +++++++++++++++++----------------
drivers/cpuidle/driver.c        | 16 ++++++++
include/acpi/processor.h        |  2 +-
include/linux/cpuidle.h         |  4 ++
6 files changed, 59 insertions(+), 33 deletions(-)
[PATCH v2 0/2] ACPI: processor: idle: Per-CPU idle driver for hybrid CPUs
Posted by Yaxiong Tian 1 month, 3 weeks ago
This series addresses limitations in the current ACPI idle driver model
for hybrid CPU architectures (e.g., ARM big.LITTLE, Intel Alder Lake),
where different core types have distinct _LPI-state characteristics.

This series introduces:

1. A per-CPU idle driver model to accurately represent idle-state per core type.
2. A new interface to fetch cpuidle_driver by CPU ID, required for early
   registration scenarios.

This issue was initially discussed at:
https://lore.kernel.org/linux-pm/97e8bc72-e44b-487a-91ba-206732094955@arm.com/T/#t

Changes since V2:
- Fix "using smp_processor_id() in preemptible" BUG in patch 0002.

Yaxiong Tian (2):
  cpuidle: Add interface to get cpuidle_driver by CPU ID
  ACPI: processor: idle: Replace single idle driver with per-CPU model
    for better hybrid CPU support

 drivers/acpi/Kconfig            |  1 +
 drivers/acpi/processor_driver.c |  3 +-
 drivers/acpi/processor_idle.c   | 66 +++++++++++++++++----------------
 drivers/cpuidle/driver.c        | 16 ++++++++
 include/acpi/processor.h        |  2 +-
 include/linux/cpuidle.h         |  4 ++
 6 files changed, 59 insertions(+), 33 deletions(-)

-- 
2.25.1