mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
CONFIG_PM_SLEEP fix: 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 <[email protected]> Acked-by: Randy Dunlap <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
0261ac5f2f
commit
c78277288e
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
@ -121,6 +122,7 @@ out:
|
|||
#endif
|
||||
shutting_down = SHUTDOWN_INVALID;
|
||||
}
|
||||
#endif /* CONFIG_PM_SLEEP */
|
||||
|
||||
static void shutdown_handler(struct xenbus_watch *watch,
|
||||
const char **vec, unsigned int len)
|
||||
|
|
|
|||
Loading…
Reference in a new issue