[PATCH v4 5/5] cpuidle: psci: Move initialization a bit earlier in the boot sequence

Dhruva G goledhruva at gmail.com
Wed Sep 16 09:52:58 PDT 2026


On 14-09-2026 20:31, Ulf Hansson wrote:
> When using PSCI OS-initiated mode along with the cpuidle-psci-domain driver
> it's of great benefit to attach the CPU devices to their CPU PM domains as
> soon as possible, as other non-CPU devices sharing the same PM domains
> depends on it to allow their devices to be probed.
> 
> Let's therefore move to a subsys_initcall, which should be soon enough
> after the cpuidle-psci-domain have initialized the PM domain topology.
> 
> Reviewed-by: Abel Vesa <abel.vesa at oss.qualcomm.com>
> Tested-by: Yuanfang Zhang <yuanfang.zhang at oss.qualcomm.com>
> Signed-off-by: Ulf Hansson <ulf.hansson at oss.qualcomm.com>
> ---


Reviewed-by: Dhruva Gole <goledhruva at gmail.com>

> 
> Changes in v4:
> 	- None.
> Changes in v3:
> 	- None.
> Changes in v2:
> 	- New patch.
> 
> ---
>  drivers/cpuidle/cpuidle-psci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/cpuidle/cpuidle-psci.c b/drivers/cpuidle/cpuidle-psci.c
> index b250d0dde760..0187d6a9096a 100644
> --- a/drivers/cpuidle/cpuidle-psci.c
> +++ b/drivers/cpuidle/cpuidle-psci.c
> @@ -479,4 +479,4 @@ static int __init psci_idle_init(void)
>  
>  	return 0;
>  }
> -device_initcall(psci_idle_init);
> +subsys_initcall(psci_idle_init);




More information about the linux-arm-kernel mailing list