Skip to content

Commit 73580da

Browse files
committed
parisc: Fix system shutdown halt
On those parisc machines which don't provide a software power off function, the system currently kills the init process at the end of a shutdown and unexpectedly restarts insteads of halting. Fix it by adding a loop which will not return. Signed-off-by: Helge Deller <[email protected]> Cc: [email protected] # 4.9+
1 parent 74e3f6e commit 73580da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/parisc/kernel/process.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ void machine_power_off(void)
142142

143143
printk(KERN_EMERG "System shut down completed.\n"
144144
"Please power this system off now.");
145+
146+
for (;;);
145147
}
146148

147149
void (*pm_power_off)(void) = machine_power_off;

0 commit comments

Comments
 (0)