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-changelog

[Xen-changelog] [xen-3.1-testing] linux: Add two arch hooks xen_pre_susp

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.1-testing] linux: Add two arch hooks xen_pre_suspend() and xen_post_suspend() for
From: "Xen patchbot-3.1-testing" <patchbot-3.1-testing@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 09 May 2007 13:10:19 -0700
Delivery-date: Wed, 09 May 2007 13:10:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.1-testing] linux: Add two arch hooks xen_pre_suspend() and xen_post_suspend() for, Xen patchbot-3.1-testing <=