WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH][LINUX] use machine_emergency_restart() from the

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][LINUX] use machine_emergency_restart() from the
From: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Date: Mon, 07 Aug 2006 09:56:42 -0400
Delivery-date: Mon, 07 Aug 2006 11:49:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
--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.

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>

---

diff -r 7680b29c03a6 drivers/xen/core/reboot.c
--- a/drivers/xen/core/reboot.c Sat Aug 05 11:33:24 2006 -0400
+++ b/drivers/xen/core/reboot.c Mon Aug 07 09:50:33 2006 -0400
@@ -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)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][LINUX] use machine_emergency_restart() from the, Jimi Xenidis <=