Skip to content

Commit 92daa7b

Browse files
rjwysockilenb
authored andcommitted
ACPI suspend: build fix for ACPI_SLEEP=n && XEN_SAVE_RESTORE=y.
Signed-off-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Len Brown <[email protected]>
1 parent cab0896 commit 92daa7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/acpi/sleep/main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ static void acpi_pm_end(void)
163163
acpi_target_sleep_state = ACPI_STATE_S0;
164164
acpi_sleep_tts_switch(acpi_target_sleep_state);
165165
}
166+
#else /* !CONFIG_ACPI_SLEEP */
167+
#define acpi_target_sleep_state ACPI_STATE_S0
166168
#endif /* CONFIG_ACPI_SLEEP */
167169

168170
#ifdef CONFIG_SUSPEND

0 commit comments

Comments
 (0)