m68k/mac: Avoid soft-lockup warning after mach_power_off
authorFinn Thain <fthain@telegraphics.com.au>
Sat, 12 Aug 2017 07:12:12 +0000 (17:12 +1000)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 21 Aug 2017 09:52:56 +0000 (11:52 +0200)
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 <userm57@yahoo.com>
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/mac/misc.c

index 944795f..d96348a 100644 (file)
@@ -474,8 +474,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);
 }
 
@@ -565,8 +566,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);
 }