Subject: Re: [PATCH] powerpc/powernv/cpuidle: Pass correct drv->cpumask for registration

From: Michael Neuling <[email-masked]>
Date: Sat, 18 Mar 2017 16:28:02 +1100

Vaidy,

Thanks for fixing this.

> drv->cpumask defaults to cpu_possible_mask in __cpuidle_driver_init().
> This breaks cpuidle on powernv where sysfs files are not created for
> cpus in cpu_possible_mask that cannot be hot-added.

I think I prefer the longer description below than this.

> This patch fixes the issue by passing correct cpumask from
> powernv-cpuidle driver.

Any reason the correct fix isn't to change __cpuidle_driver_init() to use
present mask?  Seems like any arch where present < possible is going to hit
this.

> Signed-off-by: Vaidyanathan Srinivasan <[email-masked]>

Can we CC stable too.  This breaks at least v4.10.

> ---
>  drivers/cpuidle/cpuidle-powernv.c | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
>