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

Commit 3147093e authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: Restore bl bit toggling in idle loop.



This fixes up some crashes with IRQs racing the need_resched() test under
QEMU.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 2f7bb2df
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -92,6 +92,7 @@ void cpu_idle(void)
			check_pgt_cache();
			rmb();

			set_bl_bit();
			local_irq_disable();
			/* Don't trace irqs off for idle */
			stop_critical_timings();
@@ -102,6 +103,7 @@ void cpu_idle(void)
			 */
			WARN_ON(irqs_disabled());
			start_critical_timings();
			clear_bl_bit();
		}

		tick_nohz_restart_sched_tick();