aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powernv/idle.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-04-01 15:38:13 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2018-04-03 22:14:27 +1000
commita2b5e056b75ee6ef0777817644a456b36b96ce38 (patch)
tree02711ff4c5dc10a6ab6cb756c4bbbc5d1720e2e8 /arch/powerpc/platforms/powernv/idle.c
parentselftests/powerpc: Fix copyloops build since Power4 assembler change (diff)
downloadlinux-dev-a2b5e056b75ee6ef0777817644a456b36b96ce38.tar.xz
linux-dev-a2b5e056b75ee6ef0777817644a456b36b96ce38.zip
powerpc/powernv: Fix SMT4 forcing idle code
The PSSCR value is not stored to PACA_REQ_PSSCR if the CPU does not have the XER[SO] bug. Fix this by storing up-front, outside the workaround code. The initial test is not required because it is a slow path. The workaround is made to depend on CONFIG_KVM_BOOK3S_HV_POSSIBLE, to match pnv_power9_force_smt4_catch() where it is used. Drop the comment on pnv_power9_force_smt4_catch() as it's no longer true. Fixes: 7672691a08c8 ("powerpc/powernv: Provide a way to force a core into SMT4 mode") Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/powernv/idle.c')
-rw-r--r--arch/powerpc/platforms/powernv/idle.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/powernv/idle.c b/arch/powerpc/platforms/powernv/idle.c
index 378fde1f85a8..1f12ab1e6030 100644
--- a/arch/powerpc/platforms/powernv/idle.c
+++ b/arch/powerpc/platforms/powernv/idle.c
@@ -397,10 +397,6 @@ void power9_idle(void)
* all other threads not to stop, and sending a message to any
* that are in a stop state.
* Must be called with preemption disabled.
- *
- * DO NOT call this unless cpu_has_feature(CPU_FTR_P9_TM_XER_SO_BUG) is
- * true; otherwise this function will hang the system, due to the
- * optimization in power9_idle_stop.
*/
void pnv_power9_force_smt4_catch(void)
{