]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/cpuidle: Init all present cpus for deep states
authorAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Wed, 16 May 2018 12:02:14 +0000 (17:32 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 28 May 2018 08:46:33 +0000 (18:46 +1000)
commit272eb07dd2056a0502e465271c4aa9f2a755972b
tree6c3770a0db396ba9b743b913c55ca1c450368475
parent9c2b55e6e68c8f0ef9b3dcc2545d1b4a001616f5
powerpc/powernv/cpuidle: Init all present cpus for deep states

Init all present cpus for deep states instead of "all possible" cpus.
Init fails if a possible cpu is guarded. Resulting in making only
non-deep states available for cpuidle/hotplug.

Stewart says, this means that for single threaded workloads, if you
guard out a CPU core you'll not get WoF (Workload Optimised
Frequency), which means that performance goes down when you wouldn't
expect it to.

Fixes: aa1a39b65e6b ("powernv/powerpc: Add winkle support for offline cpus")
Cc: stable@vger.kernel.org # v3.19+
Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/idle.c