[v3,7/7] SLW: Removing timebase related flags for stop4

Message ID 1503478082-11775-8-git-send-email-akshay.adiga@linux.vnet.ibm.com
State Superseded
Headers show

Commit Message

Akshay Adiga Aug. 23, 2017, 8:48 a.m.
When a core enters stop4, it does not loose decrementer and time base.
Hence removing flags OPAL_PM_DEC_STOP and OPAL_PM_TIMEBASE_STOP.

Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com>
---
 hw/slw.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/hw/slw.c b/hw/slw.c
index 288295a..7f55c63 100644
--- a/hw/slw.c
+++ b/hw/slw.c
@@ -601,8 +601,8 @@  static struct cpu_idle_states power9_cpu_idle_states[] = {
 		.name = "stop4",
 		.latency_ns = 100000,
 		.residency_ns = 1000000,
-		.flags = 1*OPAL_PM_DEC_STOP \
-		       | 1*OPAL_PM_TIMEBASE_STOP  \
+		.flags = 0*OPAL_PM_DEC_STOP \
+		       | 0*OPAL_PM_TIMEBASE_STOP  \
 		       | 1*OPAL_PM_LOSE_USER_CONTEXT \
 		       | 1*OPAL_PM_LOSE_HYP_CONTEXT \
 		       | 1*OPAL_PM_LOSE_FULL_CONTEXT \