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

[Xen-changelog] Enable grant table suspend and resume when CONFIG_XEN_BLKDEV_GRANT



ChangeSet 1.1353, 2005/04/21 12:35:36+01:00, bren@xxxxxxxxxxxxxxxxxxxxxxx

        Enable grant table suspend and resume when CONFIG_XEN_BLKDEV_GRANT
        is defined.
        
        Signed-off-by: Bin Ren <bin.ren@xxxxxxxxxxxx>



 reboot.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/kernel/reboot.c 
b/linux-2.6.11-xen-sparse/arch/xen/kernel/reboot.c
--- a/linux-2.6.11-xen-sparse/arch/xen/kernel/reboot.c  2005-04-21 21:03:47 
-04:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/kernel/reboot.c  2005-04-21 21:03:47 
-04:00
@@ -77,15 +77,19 @@
 #define netif_resume()  do{}while(0)
 #endif
 
-
 #ifdef CONFIG_XEN_USB_FRONTEND
     extern void usbif_resume();
 #else
 #define usbif_resume() do{}while(0)
 #endif
 
+#ifdef CONFIG_XEN_BLKDEV_GRANT
     extern int gnttab_suspend(void);
     extern int gnttab_resume(void);
+#else
+#define gnttab_suspend() do{}while(0)
+#define gnttab_resume()  do{}while(0)
+#endif
 
     extern void time_suspend(void);
     extern void time_resume(void);

_______________________________________________
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®.