Skip to contentSkip to conversation

add two arch hooks xen_pre_suspend() and xen_post_suspend() for suspend/resume.

PATCH New Isaku Yamahata 1 participant 1 message May 7, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add two arch hooks xen_pre_suspend() and xen_post_suspend() for suspend/resume.

add two arch hooks xen_pre_suspend() and xen_post_suspend() for suspend/resume. Xen/ia64 needs them.

Signature · 1 line
yamahata

# HG changeset patch
# User [email protected]
# Date 1178507375 -32400
# Node ID de2a4e22aa551a515da5dfa631323fc18a207b93
# Parent 2f1dedd25b220067297387e911668adec185504a
add two arch hooks xen_pre_suspend() and xen_post_suspend() for suspend/resume. Xen/ia64 needs them.
PATCHNAME: xen_pre_post_suspend_hooks

linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c +10 -2
diff -r 2f1dedd25b22 -r de2a4e22aa55 linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c
@@ -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-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel