]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle/powernv: avoid double irq enable coming out of idle
authorNicholas Piggin <npiggin@gmail.com>
Thu, 16 Nov 2017 16:00:52 +0000 (02:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 18 Jan 2018 04:43:44 +0000 (15:43 +1100)
commitd96bef44ec0c731623b05e8ce00a7a587a085402
tree7b2bb0b8785e064f346dd786d9d36933984ccef5
parent9551005562e091ab943810ea1360e54d8aec8eb1
cpuidle/powernv: avoid double irq enable coming out of idle

Since 6c8cdad42d ("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 <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/cpuidle/cpuidle-pseries.c