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-ppc-devel

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

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [linux-ppc-2.6] [XEN] shutting_down flag update for ppc suspend handler
From: geyi <kudva@xxxxxxxxxxxxxx>
Date: Fri, 03 Nov 2006 17:50:11 -0500
Delivery-date: Fri, 03 Nov 2006 14:50:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)
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
<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [linux-ppc-2.6] [XEN] shutting_down flag update for ppc suspend handler, geyi <=