Skip to content

Commit

Permalink
sh: Fix up IRQ re-enabling for the need_resched() case.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Oct 16, 2009
1 parent 0e6d498 commit 9dbe00a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/sh/kernel/idle.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ void default_idle(void)
if (!need_resched()) {
local_irq_enable();
cpu_sleep();
}
} else
local_irq_enable();

set_thread_flag(TIF_POLLING_NRFLAG);
} else
Expand Down

0 comments on commit 9dbe00a

Please sign in to comment.