Skip to contentSkip to conversation

use machine_emergency_restart() from the

PATCH New Jimi Xenidis 1 participant 1 message Aug 7, 2006 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use machine_emergency_restart() from the

--text follows this line--

This patch uses the standard generic header for the definition of machine_emergency_restart() and reverses the call path for XenoLinux.

---

drivers/xen/core/reboot.c +2 -6
diff -r 7680b29c03a6 drivers/xen/core/reboot.c
@@ -9,6 +9,7 @@
 #include <linux/stringify.h>
 #include <asm/irq.h>
 #include <asm/mmu_context.h>
+#include <asm/emergency-restart.h>
 #include <xen/evtchn.h>
 #include <asm/hypervisor.h>
 #include <xen/interface/dom0_ops.h>
@@ -39,16 +40,11 @@ extern void ctrl_alt_del(void);
  */
 #define SHUTDOWN_HALT      4
 
-void machine_emergency_restart(void)
+void machine_restart(char * __unused)
 {
 	/* We really want to get pending console data out before we die. */
 	xencons_force_flush();
 	HYPERVISOR_shutdown(SHUTDOWN_reboot);
-}
-
-void machine_restart(char * __unused)
-{
-	machine_emergency_restart();
 }
 
 void machine_halt(void)