diff options
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/manage.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c index 675c3dd23962..5b546e365f00 100644 --- a/drivers/xen/manage.c +++ b/drivers/xen/manage.c | |||
@@ -31,6 +31,7 @@ enum shutdown_state { | |||
31 | /* Ignore multiple shutdown requests. */ | 31 | /* Ignore multiple shutdown requests. */ |
32 | static enum shutdown_state shutting_down = SHUTDOWN_INVALID; | 32 | static enum shutdown_state shutting_down = SHUTDOWN_INVALID; |
33 | 33 | ||
34 | #ifdef CONFIG_PM_SLEEP | ||
34 | static int xen_suspend(void *data) | 35 | static int xen_suspend(void *data) |
35 | { | 36 | { |
36 | int *cancelled = data; | 37 | int *cancelled = data; |
@@ -121,6 +122,7 @@ out: | |||
121 | #endif | 122 | #endif |
122 | shutting_down = SHUTDOWN_INVALID; | 123 | shutting_down = SHUTDOWN_INVALID; |
123 | } | 124 | } |
125 | #endif /* CONFIG_PM_SLEEP */ | ||
124 | 126 | ||
125 | static void shutdown_handler(struct xenbus_watch *watch, | 127 | static void shutdown_handler(struct xenbus_watch *watch, |
126 | const char **vec, unsigned int len) | 128 | const char **vec, unsigned int len) |