Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1343d04 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michael Ellerman
Browse files

cpuidle/powernv: avoid double irq enable coming out of idle



Since e1689795 ("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: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent c16bee4b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -76,6 +76,8 @@ static int snooze_loop(struct cpuidle_device *dev,
	ppc64_runlatch_on();
	clear_thread_flag(TIF_POLLING_NRFLAG);

	local_irq_disable();

	return index;
}