Thread (8 messages) flat view 8 messages, 4 authors, 2017-03-23

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

From: Michael Neuling <hidden>
Date: 2017-03-18 05:28:02

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 <redacted>
Can we CC stable too.  This breaks at least v4.10.
---
=C2=A0drivers/cpuidle/cpuidle-powernv.c | 22 ++++++++++++++++++++++
=C2=A01 file changed, 22 insertions(+)
=20
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help