2005-01-26 14:51:06

by Kumar Gala

[permalink] [raw]
Subject: [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: Kumar Gala <[email protected]>

---
diff -Nru a/arch/ppc/kernel/idle.c b/arch/ppc/kernel/idle.c
--- a/arch/ppc/kernel/idle.c 2005-01-26 08:39:59 -06:00
+++ b/arch/ppc/kernel/idle.c 2005-01-26 08:39:59 -06:00
@@ -41,17 +41,14 @@
if (!need_resched()) {
if (powersave != NULL && !irqs_disabled())
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();