cpuidle/powernv: avoid double irq enable coming out of idle
authorNicholas Piggin <[email protected]>
Thu, 16 Nov 2017 16:00:52 +0000 (02:00 +1000)
committerMichael Ellerman <[email protected]>
Thu, 18 Jan 2018 04:43:44 +0000 (15:43 +1100)
commitced54c08d8e4060d59c10629ea5a4ccdaed6898e
tree7b2bb0b8785e064f346dd786d9d36933984ccef5
parentf1343d044629f11e7d63ef1a07edb1db585302e0
cpuidle/powernv: avoid double irq enable coming out of idle

Since e1689795a7 ("cpuidle: Add common time keeping and irq enabling"),
cpuidle drivers are expected to return from ->enter with irqs disabled.

Update the cpuidle-powernv snooze and cede loops to disable irqs before
returning.

Signed-off-by: Nicholas Piggin <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
drivers/cpuidle/cpuidle-pseries.c