In domain restore procedure, the shutting_down flag will be reset after kernel resumes from the suspend status. So the kernel can re-enter to the shutdown handler.

--
Yi Ge <[EMAIL PROTECTED]>
# HG changeset patch
# User [EMAIL PROTECTED]
# Date 1162593065 18000
# Node ID 32cc0ad87c41dbf7f3d4dfe58ad77ac55113b826
# Parent  f21efe9b5210b1002819e7da602a26dba7787b0c
[XenPPC] Enable the shutting_down status update in 
arch/powerpc/platforms/xen/reboot.c

Signed-off-by : Yi Ge <[EMAIL PROTECTED]>

diff -r f21efe9b5210 -r 32cc0ad87c41 arch/powerpc/platforms/xen/reboot.c
--- a/arch/powerpc/platforms/xen/reboot.c       Thu Nov 02 15:53:37 2006 -0500
+++ b/arch/powerpc/platforms/xen/reboot.c       Fri Nov 03 17:31:05 2006 -0500
@@ -13,7 +13,7 @@
 
 #define  SHUTDOWN_INVALID      -1
 
-static int shutting_down ;
+extern int shutting_down ;
 
 static void domain_machine_restart(char * __unused)
 {
diff -r f21efe9b5210 -r 32cc0ad87c41 drivers/xen/core/reboot.c
--- a/drivers/xen/core/reboot.c Thu Nov 02 15:53:37 2006 -0500
+++ b/drivers/xen/core/reboot.c Fri Nov 03 17:31:05 2006 -0500
@@ -79,7 +79,7 @@ EXPORT_SYMBOL(machine_power_off);
  */
 
 /* Ignore multiple shutdown requests. */
-static int shutting_down = SHUTDOWN_INVALID;
+int shutting_down = SHUTDOWN_INVALID;
 static void __shutdown_handler(void *unused);
 static DECLARE_WORK(shutdown_work, __shutdown_handler, NULL);
 
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel

Reply via email to