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

[Xen-changelog] [xen-unstable] linux: Add two arch hooks xen_pre_suspend() and xen_post_suspend() for



# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1178542638 -3600
# Node ID 33fbff91ebe4fb6aed80446d8602602869b0dfc4
# Parent  b78d611d1b1774b280f38bf20cb21d27cbb8590c
linux: Add two arch hooks xen_pre_suspend() and xen_post_suspend() for
suspend/resume. Xen/ia64 needs them.
Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff -r b78d611d1b17 -r 33fbff91ebe4 
linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c
--- a/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c    Mon May 07 
13:54:51 2007 +0100
+++ b/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c    Mon May 07 
13:57:18 2007 +0100
@@ -113,10 +113,18 @@ static void post_suspend(int suspend_can
 
 #else /* !(defined(__i386__) || defined(__x86_64__)) */
 
+#ifndef HAVE_XEN_PRE_SUSPEND
+#define xen_pre_suspend()      ((void)0)
+#endif
+
+#ifndef HAVE_XEN_POST_SUSPEND
+#define xen_post_suspend(x)    ((void)0)
+#endif
+
 #define switch_idle_mm()       ((void)0)
 #define mm_pin_all()           ((void)0)
-#define pre_suspend()          ((void)0)
-#define post_suspend(x)                ((void)0)
+#define pre_suspend()          xen_pre_suspend()
+#define post_suspend(x)                xen_post_suspend(x)
 
 #endif
 

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


 


Rackspace

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