Commit 9dbe00a5 authored by Paul Mundt's avatar Paul Mundt

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent 0e6d4986
...@@ -65,7 +65,8 @@ void default_idle(void) ...@@ -65,7 +65,8 @@ void default_idle(void)
if (!need_resched()) { if (!need_resched()) {
local_irq_enable(); local_irq_enable();
cpu_sleep(); cpu_sleep();
} } else
local_irq_enable();
set_thread_flag(TIF_POLLING_NRFLAG); set_thread_flag(TIF_POLLING_NRFLAG);
} else } else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment