ACPI: processor: Do not expose global variable acpi_idle_driver
authorHuisong Li <lihuisong@huawei.com>
Tue, 23 Sep 2025 03:24:28 +0000 (11:24 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Sep 2025 13:33:19 +0000 (15:33 +0200)
commit559f2eacc8a23c7f44daac09d4f3efd958d497f2
tree020ae78bb03f1d3cccf710ef3f9c3be65a9b8ea7
parentfbd401e95e569ad0307e4301012f2d8e1ec1ee98
ACPI: processor: Do not expose global variable acpi_idle_driver

Move the cpuidle driver check from __acpi_processor_start() to
acpi_processor_power_init() which allows variable acpi_idle_driver to
become static.

No intentional functional impact.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Link: https://patch.msgid.link/20250923032428.2656329-2-lihuisong@huawei.com
[ rjw: Subject tweak, new changelog, adjustment of a new comment ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/processor_driver.c
drivers/acpi/processor_idle.c
include/acpi/processor.h