Skip to content

Commit 558d5ad

Browse files
Finn Thaingeertu
authored andcommitted
m68k/mac: Avoid soft-lockup warning after mach_power_off
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>
1 parent 41e93a3 commit 558d5ad

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎arch/m68k/mac/misc.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,9 @@ void mac_poweroff(void)
474474
pmu_shutdown();
475475
#endif
476476
}
477-
local_irq_enable();
477+
478478
pr_crit("It is now safe to turn off your Macintosh.\n");
479+
local_irq_disable();
479480
while(1);
480481
}
481482

@@ -565,8 +566,8 @@ void mac_reset(void)
565566
}
566567

567568
/* should never get here */
568-
local_irq_enable();
569569
pr_crit("Restart failed. Please restart manually.\n");
570+
local_irq_disable();
570571
while(1);
571572
}
572573

0 commit comments

Comments
 (0)