Disable interrupts for power-off, like other platforms do. This prevents 
meaningless warnings from the soft-lockup detector on models with a power 
supply unit not under software control.

Reported-by: Stan Johnson <user...@yahoo.com>
Tested-by: Stan Johnson <user...@yahoo.com>
Signed-off-by: Finn Thain <fth...@telegraphics.com.au>

diff --git a/arch/m68k/mac/misc.c b/arch/m68k/mac/misc.c
index 8aa8792e3174..0f3ba726e8a9 100644
--- a/arch/m68k/mac/misc.c
+++ b/arch/m68k/mac/misc.c
@@ -463,8 +463,9 @@ void mac_poweroff(void)
                pmu_shutdown();
 #endif
        }
-       local_irq_enable();
+
        pr_crit("It is now safe to turn off your Macintosh.\n");
+       local_irq_disable();
        while(1);
 }
 
@@ -554,8 +555,8 @@ void mac_reset(void)
        }
 
        /* should never get here */
-       local_irq_enable();
        pr_crit("Restart failed. Please restart manually.\n");
+       local_irq_disable();
        while(1);
 }
 
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to