Skip to content

Commit 16d83a5

Browse files
pratiksampatmpe
authored andcommitted
Revert "powerpc/powernv/idle: Replace CPU feature check with PVR check"
cpuidle stop state implementation has minor optimizations for P10 where hardware preserves more SPR registers compared to P9. The current P9 driver works for P10, although does few extra save-restores. P9 driver can provide the required power management features like SMT thread folding and core level power savings on a P10 platform. Until the P10 stop driver is available, revert the commit which allows for only P9 systems to utilize cpuidle and blocks all idle stop states for P10. CPU idle states are enabled and tested on the P10 platform with this fix. This reverts commit 8747bf3. Fixes: 8747bf3 ("powerpc/powernv/idle: Replace CPU feature check with PVR check") Signed-off-by: Pratik Rajesh Sampat <[email protected]> Reviewed-by: Vaidyanathan Srinivasan <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 82715a0 commit 16d83a5

File tree

1 file changed

+1
-1
lines changed
  • arch/powerpc/platforms/powernv

1 file changed

+1
-1
lines changed

arch/powerpc/platforms/powernv/idle.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ static void __init pnv_probe_idle_states(void)
12231223
return;
12241224
}
12251225

1226-
if (pvr_version_is(PVR_POWER9))
1226+
if (cpu_has_feature(CPU_FTR_ARCH_300))
12271227
pnv_power9_idle_init();
12281228

12291229
for (i = 0; i < nr_pnv_idle_states; i++)

0 commit comments

Comments
 (0)