powerpc/powernv: Use deepest stop state when cpu is offlined
If hardware supports stop state, use the deepest stop state when the cpu is offlined. Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com> Signed-off-by: Shreyas B. Prabhu <shreyas@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
3005c597ba
commit
c0691f9dd2
@@ -182,7 +182,9 @@ static void pnv_smp_cpu_kill_self(void)
|
||||
|
||||
ppc64_runlatch_off();
|
||||
|
||||
if (idle_states & OPAL_PM_WINKLE_ENABLED)
|
||||
if (cpu_has_feature(CPU_FTR_ARCH_300))
|
||||
srr1 = power9_idle_stop(pnv_deepest_stop_state);
|
||||
else if (idle_states & OPAL_PM_WINKLE_ENABLED)
|
||||
srr1 = power7_winkle();
|
||||
else if ((idle_states & OPAL_PM_SLEEP_ENABLED) ||
|
||||
(idle_states & OPAL_PM_SLEEP_ENABLED_ER1))
|
||||
|
Reference in New Issue
Block a user