patch-2.4.20 linux-2.4.20/arch/sparc64/kernel/process.c
Next file: linux-2.4.20/arch/sparc64/kernel/ptrace.c
Previous file: linux-2.4.20/arch/sparc64/kernel/power.c
Back to the patch index
Back to the overall index
- Lines: 22
- Date:
Thu Nov 28 15:53:12 2002
- Orig file:
linux-2.4.19/arch/sparc64/kernel/process.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/sparc64/kernel/process.c linux-2.4.20/arch/sparc64/kernel/process.c
@@ -128,6 +128,21 @@
panic("Halt failed!");
}
+void machine_alt_power_off(void)
+{
+ sti();
+ mdelay(8);
+ cli();
+#ifdef CONFIG_SUN_CONSOLE
+ if (!serial_console && prom_palette)
+ prom_palette(1);
+#endif
+ if (prom_keyboard)
+ prom_keyboard();
+ prom_halt_power_off();
+ panic("Power-off failed!");
+}
+
void machine_restart(char * cmd)
{
char *p;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)