patch-2.4.19 linux-2.4.19/arch/mips64/sgi-ip27/ip27-reset.c

Next file: linux-2.4.19/arch/mips64/sgi-ip27/ip27-rtc.c
Previous file: linux-2.4.19/arch/mips64/sgi-ip27/ip27-pci.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/mips64/sgi-ip27/ip27-reset.c linux-2.4.19/arch/mips64/sgi-ip27/ip27-reset.c
@@ -14,8 +14,10 @@
 #include <linux/timer.h>
 #include <linux/smp.h>
 #include <linux/mmzone.h>
+
 #include <asm/io.h>
 #include <asm/irq.h>
+#include <asm/reboot.h>
 #include <asm/system.h>
 #include <asm/sgialib.h>
 #include <asm/sn/addrs.h>
@@ -30,7 +32,7 @@
 #define noreturn while(1);				/* Silence gcc.  */
 
 /* XXX How to pass the reboot command to the firmware??? */
-void machine_restart(char *command)
+static void ip27_machine_restart(char *command)
 {
 #if 0
 	int i;
@@ -50,7 +52,7 @@
 	noreturn;
 }
 
-void machine_halt(void)
+static void ip27_machine_halt(void)
 {
 	int i;
 
@@ -64,7 +66,7 @@
 	noreturn;
 }
 
-void machine_power_off(void)
+static void ip27_machine_power_off(void)
 {
 	/* To do ...  */
 	noreturn;
@@ -72,5 +74,7 @@
 
 void ip27_reboot_setup(void)
 {
-	/* Nothing to do on IP27.  */
+	_machine_restart = ip27_machine_restart;
+	_machine_halt = ip27_machine_halt;
+	_machine_power_off = ip27_machine_power_off;
 }

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