Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: Fix up IRQ re-enabling for the need_resched() case.

In the case where need_resched() is set in between the cpu_idle() and
pm_idle() calls we were missing an else case for just re-enabling local
IRQs and bailing out. This was noticed by the irqs_disabled() warning,
even though IRQs were being re-enabled elsewhere.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

+2 -1
+2 -1
arch/sh/kernel/idle.c
··· 65 65 if (!need_resched()) { 66 66 local_irq_enable(); 67 67 cpu_sleep(); 68 - } 68 + } else 69 + local_irq_enable(); 69 70 70 71 set_thread_flag(TIF_POLLING_NRFLAG); 71 72 } else