OSDN Git Service

cpuidle/powernv: avoid double irq enable coming out of idle
authorNicholas Piggin <npiggin@gmail.com>
Thu, 16 Nov 2017 16:00:51 +0000 (02:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 18 Jan 2018 04:43:43 +0000 (15:43 +1100)
commitf1343d044629f11e7d63ef1a07edb1db585302e0
treef0f5a7988f76febc47dd9c026db3c99275cf1ab7
parentc16bee4bded5449ec3b3ec73579ba29881f2e978
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 loop to disable irqs before returning.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/cpuidle/cpuidle-powernv.c