Re: [PATCH v3 3/3] ACPI: processor: Do not expose the global acpi_idle_driver variable

From: Rafael J. Wysocki

Date: Thu Sep 18 2025 - 17:23:09 EST


On Thu, Sep 18, 2025 at 2:23 PM lihuisong (C) <lihuisong@xxxxxxxxxx> wrote:
>
>
> 在 2025/9/18 4:01, Rafael J. Wysocki 写道:
> > On Thu, Sep 11, 2025 at 1:24 PM Huisong Li <lihuisong@xxxxxxxxxx> wrote:
> >> Currently, processor_driver just use the global acpi_idle_driver variable
> >> to check if the cpuidle driver is acpi_idle_driver. Actually, there is no
> >> need to expose this global variable defined in processor_idle.c to outside.
> >> So move the related logical to acpi_processor_power_init() and do not
> >> expose it.
> > And it can also be made static, can't it?
> ok, will do it in next version. Thanks.

You may as well rebase it on top of this one:

https://lore.kernel.org/linux-acpi/5044465.31r3eYUQgx@rafael.j.wysocki/