MIPS: Idle: Re-enable irqs at the end of r3081, au1k and loongson2 cpu_wait.
Without this, the
WARN_ON_ONCE(irqs_disabled());
in the idle loop will be triggered.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
diff --git a/arch/mips/kernel/idle.c b/arch/mips/kernel/idle.c
index 36e79f5..78cc7d6 100644
--- a/arch/mips/kernel/idle.c
+++ b/arch/mips/kernel/idle.c
@@ -34,6 +34,7 @@
{
unsigned long cfg = read_c0_conf();
write_c0_conf(cfg | R30XX_CONF_HALT);
+ local_irq_enable();
}
static void r39xx_wait(void)
@@ -109,6 +110,7 @@
" nop \n"
" .set mips0 \n"
: : "r" (au1k_wait));
+ local_irq_enable();
}
static int __initdata nowait;