direct-io.hg

changeset 15014:33fbff91ebe4

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@valinux.co.jp>
author Keir Fraser <keir@xensource.com>
date Mon May 07 13:57:18 2007 +0100 (2007-05-07)
parents b78d611d1b17
children 9d0dbe9c4d6b
files linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c	Mon May 07 13:54:51 2007 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/core/machine_reboot.c	Mon May 07 13:57:18 2007 +0100
     1.3 @@ -113,10 +113,18 @@ static void post_suspend(int suspend_can
     1.4  
     1.5  #else /* !(defined(__i386__) || defined(__x86_64__)) */
     1.6  
     1.7 +#ifndef HAVE_XEN_PRE_SUSPEND
     1.8 +#define xen_pre_suspend()	((void)0)
     1.9 +#endif
    1.10 +
    1.11 +#ifndef HAVE_XEN_POST_SUSPEND
    1.12 +#define xen_post_suspend(x)	((void)0)
    1.13 +#endif
    1.14 +
    1.15  #define switch_idle_mm()	((void)0)
    1.16  #define mm_pin_all()		((void)0)
    1.17 -#define pre_suspend()		((void)0)
    1.18 -#define post_suspend(x)		((void)0)
    1.19 +#define pre_suspend()		xen_pre_suspend()
    1.20 +#define post_suspend(x)		xen_post_suspend(x)
    1.21  
    1.22  #endif
    1.23