[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141118065603.22544.88816.stgit@preeti.in.ibm.com>
Date: Tue, 18 Nov 2014 12:26:03 +0530
From: Preeti U Murthy <preeti@...ux.vnet.ibm.com>
To: mpe@...erman.id.au, mikey@...ling.org, joel.stanley@....ibm.com
Cc: benh@...nel.crashing.org, linuxppc-dev@...ts.ozlabs.org,
rjw@...ysocki.net, linux-kernel@...r.kernel.org
Subject: [PATCH] cpuidle/powernv: Re-enable fastsleep at boot time
Commit dcb18694 "Fix ipi on palmeto" disabled fastsleep at boot time.
Revert this commit since we no longer need this fix. However we can
continue to use powersave_nap parameter to control entry into deep
idle states beyond snooze.
Signed-off-by: Preeti U. Murthy <preeti@...ux.vnet.ibm.com>
---
drivers/cpuidle/cpuidle-powernv.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/cpuidle/cpuidle-powernv.c b/drivers/cpuidle/cpuidle-powernv.c
index b57681d..b430e76 100644
--- a/drivers/cpuidle/cpuidle-powernv.c
+++ b/drivers/cpuidle/cpuidle-powernv.c
@@ -69,8 +69,9 @@ static int fastsleep_loop(struct cpuidle_device *dev,
unsigned long old_lpcr = mfspr(SPRN_LPCR);
unsigned long new_lpcr;
- if (powersave_nap < 2)
- return;
+ if (!(powersave_nap > 0))
+ return index;
+
if (unlikely(system_state < SYSTEM_RUNNING))
return index;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists