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

Commit ddafddcf authored by Anton Blanchard's avatar Anton Blanchard Committed by Paul Mackerras
Browse files

[PATCH] powerpc: Ensure runlatch is off in the idle loop



Since external and decrementer interrupts set the runlatch on, we need
to ensure its set off again in the idle loop. At the moment we dont turn
it off in the inner loop.

Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent b86756ae
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -50,9 +50,9 @@ void cpu_idle(void)


	set_thread_flag(TIF_POLLING_NRFLAG);
	set_thread_flag(TIF_POLLING_NRFLAG);
	while (1) {
	while (1) {
		while (!need_resched() && !cpu_should_die()) {
			ppc64_runlatch_off();
			ppc64_runlatch_off();


		while (!need_resched() && !cpu_should_die()) {
			if (ppc_md.power_save) {
			if (ppc_md.power_save) {
				clear_thread_flag(TIF_POLLING_NRFLAG);
				clear_thread_flag(TIF_POLLING_NRFLAG);
				/*
				/*