]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/cpuidle: Only clear LPCR decrementer wakeup bit on fast sleep entry
authorMichael Neuling <mikey@neuling.org>
Wed, 11 Jun 2014 05:59:27 +0000 (15:59 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Jun 2014 07:05:12 +0000 (17:05 +1000)
commit40752f63924ff4f9c9e01f0d3db605c7214a1867
tree59b7dc95763f5f070ca8a8f50582cb938aeebf5a
parent94204958b7fca92766fdeab36ead7aee98afc9c1
powerpc/cpuidle: Only clear LPCR decrementer wakeup bit on fast sleep entry

Currently when entering fastsleep we clear all LPCR PECE bits.

This patch changes it to only clear the decrementer bit (ie. PECE1), which is
the only bit we really need to clear here.  This is needed if we want to set
other wakeup causes like the PECEDH bit so we can use hypervisor doorbells on
powernv.  Also we no longer clear the MER bit as it should never be set in the
host anyway.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/cpuidle/cpuidle-powernv.c