patch-2.4.20 linux-2.4.20/arch/sparc64/prom/misc.c
Next file: linux-2.4.20/arch/sparc64/solaris/misc.c
Previous file: linux-2.4.20/arch/sparc64/mm/ultra.S
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu Nov 28 15:53:12 2002
- Orig file:
linux-2.4.19/arch/sparc64/prom/misc.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/sparc64/prom/misc.c linux-2.4.20/arch/sparc64/prom/misc.c
@@ -97,6 +97,19 @@
goto again; /* PROM is out to get me -DaveM */
}
+void
+prom_halt_power_off(void)
+{
+#ifdef CONFIG_SMP
+ smp_promstop_others();
+ udelay(8000);
+#endif
+ p1275_cmd ("SUNW,power-off", P1275_INOUT(0,0));
+
+ /* if nothing else helps, we just halt */
+ prom_halt ();
+}
+
/* Set prom sync handler to call function 'funcp'. */
void
prom_setcallback(callback_func_t funcp)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)