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

[Xen-devel] [PATCH] xen: fix compilation when CONFIG_PM_SLEEP is disabled



Xen save/restore depends on CONFIG_PM_SLEEP being set for device_power_up/down.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
Cc: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

---
drivers/xen/manage.c |    2 ++
1 file changed, 2 insertions(+)

===================================================================
--- a/drivers/xen/manage.c
+++ b/drivers/xen/manage.c
@@ -31,6 +31,7 @@
/* Ignore multiple shutdown requests. */
static enum shutdown_state shutting_down = SHUTDOWN_INVALID;

+#ifdef CONFIG_PM_SLEEP
static int xen_suspend(void *data)
{
        int *cancelled = data;
@@ -121,6 +122,7 @@
#endif
        shutting_down = SHUTDOWN_INVALID;
}
+#endif /* CONFIG_PM_SLEEP */

static void shutdown_handler(struct xenbus_watch *watch,
                             const char **vec, unsigned int len)



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.