Message ID | alpine.LFD.2.11.1401291434120.1652@knanqh.ubzr (mailing list archive) |
---|---|
State | Awaiting Upstream |
Headers | show |
On Wed, Jan 29, 2014 at 03:14:40PM -0500, Nicolas Pitre wrote: > Looking into some cpuidle drivers for x86 I found at least one that > doesn't respect this convention. Damn. Which one? We should probably fix it :-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/kernel/cpu/idle.c b/kernel/cpu/idle.c index ffcd3ee9af..14ca43430a 100644 --- a/kernel/cpu/idle.c +++ b/kernel/cpu/idle.c @@ -98,7 +98,8 @@ static void cpu_idle_loop(void) rcu_idle_enter(); if (cpuidle_idle_call()) arch_cpu_idle(); - WARN_ON_ONCE(irqs_disabled()); + if (WARN_ON_ONCE(irqs_disabled())) + local_irq_enable(); rcu_idle_exit(); start_critical_timings(); } else {