diff mbox series

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

Message ID 1505460876-7303-8-git-send-email-akshay.adiga@linux.vnet.ibm.com
State Superseded
Headers show
Series Enable stop4 idle state | expand

Commit Message

Akshay Adiga Sept. 15, 2017, 7:34 a.m. UTC
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(-)

Comments

Vaidyanathan Srinivasan Sept. 15, 2017, 8:35 a.m. UTC | #1
* Akshay Adiga <akshay.adiga@linux.vnet.ibm.com> [2017-09-15 13:04:35]:

> 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>

Reviewed-by: Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com>

> ---
>  hw/slw.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hw/slw.c b/hw/slw.c
> index 1ce7608..561cbf7 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 \
> -- 
> 2.5.5
>
diff mbox series

Patch

diff --git a/hw/slw.c b/hw/slw.c
index 1ce7608..561cbf7 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 \