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

Michael Neuling mikey at neuling.org
Sat Mar 18 16:28:02 AEDT 2017


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 <svaidy at linux.vnet.ibm.com>

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

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


More information about the Linuxppc-dev mailing list