summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2008-10-23 21:46:43 +0200
committerLen Brown <len.brown@intel.com>2008-10-25 04:07:13 -0400
commit92daa7b53b76984565dfdfda5d9c679884121fb2 (patch)
tree1bc19a1a399a55ef22acb7d191079e7b727ba18d /drivers
parentcab08969188e2da09923fe9c4a99ec9b934b0708 (diff)
downloadop-kernel-dev-92daa7b53b76984565dfdfda5d9c679884121fb2.zip
op-kernel-dev-92daa7b53b76984565dfdfda5d9c679884121fb2.tar.gz
ACPI suspend: build fix for ACPI_SLEEP=n && XEN_SAVE_RESTORE=y.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/sleep/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c
index 26571ba..80c0868 100644
--- a/drivers/acpi/sleep/main.c
+++ b/drivers/acpi/sleep/main.c
@@ -163,6 +163,8 @@ static void acpi_pm_end(void)
acpi_target_sleep_state = ACPI_STATE_S0;
acpi_sleep_tts_switch(acpi_target_sleep_state);
}
+#else /* !CONFIG_ACPI_SLEEP */
+#define acpi_target_sleep_state ACPI_STATE_S0
#endif /* CONFIG_ACPI_SLEEP */
#ifdef CONFIG_SUSPEND
OpenPOWER on IntegriCloud