patch-2.4.27 linux-2.4.27/arch/sparc/kernel/process.c

Next file: linux-2.4.27/arch/sparc/kernel/unaligned.c
Previous file: linux-2.4.27/arch/sparc/Makefile
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/arch/sparc/kernel/process.c linux-2.4.27/arch/sparc/kernel/process.c
@@ -54,6 +54,12 @@
  */
 void (*pm_power_off)(void);
 
+/*
+ * sysctl - toggle power-off restriction for serial console 
+ * systems in machine_power_off()
+ */
+int scons_pwroff = 1;
+
 extern void fpsave(unsigned long *, unsigned long *, void *, unsigned long *);
 
 struct task_struct *last_task_used_math = NULL;
@@ -189,7 +195,7 @@
 void machine_power_off(void)
 {
 #ifdef CONFIG_SUN_AUXIO
-	if (auxio_power_register && !serial_console)
+	if (auxio_power_register && (!serial_console || scons_pwroff))
 		*auxio_power_register |= AUXIO_POWER_OFF;
 #endif
 	machine_halt();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)