[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XenPPC] [linux-ppc-2.6] [XEN] shutting_down flag update for ppc suspend handler



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 <kudva@xxxxxxxxxxxxxx>
# HG changeset patch
# User gy@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
# 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 <kudva@xxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.