|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] x86/ACPI: Fix build error when tboot is disabled
When tboot is disabled via menuconfig we get undefined reference error for
g_tboot_shared. This patch fixes that by disabling the causing source code
when tboot is disabled.
Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
xen/arch/x86/acpi/power.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/xen/arch/x86/acpi/power.c b/xen/arch/x86/acpi/power.c
index 91a8c4d0bd..29d9775aed 100644
--- a/xen/arch/x86/acpi/power.c
+++ b/xen/arch/x86/acpi/power.c
@@ -407,6 +407,7 @@ static int acpi_get_wake_status(void)
return val;
}
+#ifdef CONFIG_TBOOT
static void tboot_sleep(u8 sleep_state)
{
uint32_t shutdown_type;
@@ -451,18 +452,21 @@ static void tboot_sleep(u8 sleep_state)
tboot_shutdown(shutdown_type);
}
+#endif
/* System is really put into sleep state by this stub */
acpi_status acpi_enter_sleep_state(u8 sleep_state)
{
acpi_status status;
+#ifdef CONFIG_TBOOT
if ( tboot_in_measured_env() )
{
tboot_sleep(sleep_state);
printk(XENLOG_ERR "TBOOT failed entering s3 state\n");
return_ACPI_STATUS(AE_ERROR);
}
+#endif
ACPI_FLUSH_CPU_CACHE();
--
2.20.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |