patch-2.4.27 linux-2.4.27/arch/sparc64/kernel/power.c

Next file: linux-2.4.27/arch/sparc64/kernel/process.c
Previous file: linux-2.4.27/arch/sparc64/kernel/ioctl32.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/arch/sparc64/kernel/power.c linux-2.4.27/arch/sparc64/kernel/power.c
@@ -17,6 +17,12 @@
 #define __KERNEL_SYSCALLS__
 #include <linux/unistd.h>
 
+/*
+ * sysctl - toggle power-off restriction for serial console 
+ * systems in machine_power_off()
+ */
+int scons_pwroff = 1; 
+
 #ifdef CONFIG_PCI
 static unsigned long power_reg = 0UL;
 
@@ -40,7 +46,7 @@
 
 void machine_power_off(void)
 {
-	if (!serial_console) {
+	if (!serial_console || scons_pwroff) {
 #ifdef CONFIG_PCI
 		if (power_reg != 0UL) {
 			/* Both register bits seem to have the

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