It looks like the problem has to do with entering the powersave routine 
with irqs disabled. Here is a patch that will only enter powersave if irqs 
are enabled.

Entering powersave on PPC while irqs are disabled causes a hang. Only 
enter powersave if irqs are disabled.

Signed-off-by: Brian Waite <[EMAIL PROTECTED]> 
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-24 15:48:24 -06:00
+++ b/arch/ppc/kernel/idle.c    2005-01-24 15:48:24 -06:00
@@ -39,7 +39,7 @@
        powersave = ppc_md.power_save;
 
        if (!need_resched()) {
-               if (powersave != NULL)
+               if (powersave != NULL && !irqs_disabled())
                        powersave();
                else {
 #ifdef CONFIG_SMP

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to