Skip to content

Commit

Permalink
CONFIG_PM_SLEEP fix: xen: fix compilation when CONFIG_PM_SLEEP is dis…
Browse files Browse the repository at this point in the history
…abled

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

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Jun 2, 2008
1 parent 0261ac5 commit c782772
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/xen/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ enum shutdown_state {
/* 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;
Expand Down Expand Up @@ -121,6 +122,7 @@ static void do_suspend(void)
#endif
shutting_down = SHUTDOWN_INVALID;
}
#endif /* CONFIG_PM_SLEEP */

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

0 comments on commit c782772

Please sign in to comment.