diff options
author | Huisong Li <lihuisong@huawei.com> | 2025-07-28 15:06:12 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-09-02 16:08:25 +0200 |
commit | 7a8c994cbb2db3c5335cee35fd486557f5aaf7e1 (patch) | |
tree | 2ab18f490682cb4d3ab4bbf7785c10c1eb2991e4 /rust/helpers/platform.c | |
parent | 11b3de1c03fa9f3b5d17e6d48050bc98b3704420 (diff) |
ACPI: processor: idle: Optimize ACPI idle driver registration
Currently, the ACPI idle driver is registered from within a CPU
hotplug callback. Although this didn't cause any functional issues,
this is questionable and confusing. And it is better to register
the cpuidle driver when all of the CPUs have been brought up.
So add a new function to initialize acpi_idle_driver based on the
power management information of an available CPU and register cpuidle
driver in acpi_processor_driver_init().
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Link: https://patch.msgid.link/20250728070612.1260859-3-lihuisong@huawei.com
[ rjw: Added missing inline modifiers ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions