summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpi.c
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2015-05-06 14:14:14 +0000
committerandrew <andrew@FreeBSD.org>2015-05-06 14:14:14 +0000
commitc7931d093ffbfce615eab6134a9fef0931cda78c (patch)
treea1fcafec584ad89fd2e1095d4f79eea3f57ed382 /sys/dev/acpica/acpi.c
parent9b8d511aaf108e8110fabae1e826b2863e002d7d (diff)
downloadFreeBSD-src-c7931d093ffbfce615eab6134a9fef0931cda78c.zip
FreeBSD-src-c7931d093ffbfce615eab6134a9fef0931cda78c.tar.gz
AcpiGbl_FACS will not be defined when building using the reduced hardware
model. This may be the case on ARM.
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r--sys/dev/acpica/acpi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 7796fbe..2176191 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -605,9 +605,11 @@ acpi_attach(device_t dev)
if (AcpiGbl_FADT.Flags & ACPI_FADT_RESET_REGISTER)
sc->acpi_handle_reboot = 1;
+#if !ACPI_REDUCED_HARDWARE
/* Only enable S4BIOS by default if the FACS says it is available. */
if (AcpiGbl_FACS != NULL && AcpiGbl_FACS->Flags & ACPI_FACS_S4_BIOS_PRESENT)
sc->acpi_s4bios = 1;
+#endif
/* Probe all supported sleep states. */
acpi_sleep_states[ACPI_STATE_S0] = TRUE;
OpenPOWER on IntegriCloud