ia64/xen-unstable

changeset 4614:1de9eed58522

bitkeeper revision 1.1353 (42679008eE6ft7E62R0UneGs51hd-w)

Enable grant table suspend and resume when CONFIG_XEN_BLKDEV_GRANT
is defined.

Signed-off-by: Bin Ren <bin.ren@cl.cam.ac.uk>
author bren@br260.wolfson.cam.ac.uk
date Thu Apr 21 11:35:36 2005 +0000 (2005-04-21)
parents a7a5ecbdd584
children acc1ae9083e5
files linux-2.6.11-xen-sparse/arch/xen/kernel/reboot.c
line diff
     1.1 --- a/linux-2.6.11-xen-sparse/arch/xen/kernel/reboot.c	Thu Apr 21 10:46:29 2005 +0000
     1.2 +++ b/linux-2.6.11-xen-sparse/arch/xen/kernel/reboot.c	Thu Apr 21 11:35:36 2005 +0000
     1.3 @@ -77,15 +77,19 @@ static void __do_suspend(void)
     1.4  #define netif_resume()  do{}while(0)
     1.5  #endif
     1.6  
     1.7 -
     1.8  #ifdef CONFIG_XEN_USB_FRONTEND
     1.9      extern void usbif_resume();
    1.10  #else
    1.11  #define usbif_resume() do{}while(0)
    1.12  #endif
    1.13  
    1.14 +#ifdef CONFIG_XEN_BLKDEV_GRANT
    1.15      extern int gnttab_suspend(void);
    1.16      extern int gnttab_resume(void);
    1.17 +#else
    1.18 +#define gnttab_suspend() do{}while(0)
    1.19 +#define gnttab_resume()  do{}while(0)
    1.20 +#endif
    1.21  
    1.22      extern void time_suspend(void);
    1.23      extern void time_resume(void);