[Skiboot] [PATCH] fixup! hw/slw: only enable supported STOP states
Oliver O'Halloran
oohall at gmail.com
Mon Jan 16 12:19:38 AEDT 2017
---
hw/slw.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/hw/slw.c b/hw/slw.c
index 579c357a952a..9029af44d772 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -763,8 +763,10 @@ void add_cpu_idle_state_properties(void)
/* We can only use the stop levels that HB has made available */
if (has_stop_inst) {
- u32 level = 1ul << states[i].pm_ctrl_reg_val;
- if (!(stop_levels & level))
+ u32 level = states[i].pm_ctrl_reg_val &
+ OPAL_PM_PSSCR_RL_MASK;
+
+ if (!(stop_levels & (1ul << level))
continue;
}
--
2.7.4
More information about the Skiboot
mailing list