From 3147093e1de59081e82fb1d815424c3e952caf3e Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Fri, 18 Dec 2009 14:19:27 +0900 Subject: [PATCH] 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: Paul Mundt --- arch/sh/kernel/idle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sh/kernel/idle.c b/arch/sh/kernel/idle.c index aaff0037fcd7..8e47565dcfd1 100644 --- a/arch/sh/kernel/idle.c +++ b/arch/sh/kernel/idle.c @@ -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(); -- 2.39.2