Commit 30486848 authored by Kumar Gala's avatar Kumar Gala Committed by Linus Torvalds

[PATCH] ppc32: back out idle patch for non-powersaving CPU's

Back out previous patch to ppc idle that handled CPU's that did not have
powersavings.  Ingo's fixes to cpu_rest, cause this fix to no longer be
needed.
Signed-off-by: default avatarKumar Gala <kumar.gala@freescale.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3d0ddc0d
......@@ -41,17 +41,14 @@ void default_idle(void)
if (!need_resched()) {
if (powersave != NULL)
powersave();
else {
#ifdef CONFIG_SMP
else {
set_thread_flag(TIF_POLLING_NRFLAG);
local_irq_enable();
while (!need_resched())
barrier();
clear_thread_flag(TIF_POLLING_NRFLAG);
#else
local_irq_enable();
#endif
}
#endif
}
if (need_resched())
schedule();
......
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