git: 0cca6277499f - main - acpi: Use AcpiGbl_FACS even on ACPI_REDUCED_HARDWARE

From: Olivier Certner <olce_at_FreeBSD.org>
Date: Wed, 28 Jan 2026 11:31:33 UTC
The branch main has been updated by olce:

URL: https://cgit.FreeBSD.org/src/commit/?id=0cca6277499febef57149e8999ecd1a42ef1dfd3

commit 0cca6277499febef57149e8999ecd1a42ef1dfd3
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-01-09 09:28:18 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-01-28 11:26:38 +0000

    acpi: Use AcpiGbl_FACS even on ACPI_REDUCED_HARDWARE
    
    This has been possible since ACPICA 20240827, and is actually
    a requirement to get out of S3 on ACPI_REDUCED_HARDWARE (that said, we
    don't implement S3 on arm64 yet).
    
    Relevant ACPICA commit:
    https://github.com/acpica/acpica/commit/79cd933e7b370e8d3fb490bf36ca5d111a12f96a.
    
    Reviewed by:    obiwac
    MFC after:      2 weeks
    MFC to:         stable/15
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D54625
---
 sys/dev/acpica/acpi.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 6da406377d4b..6944adafed8e 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -672,11 +672,9 @@ 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 ACPI sleep states.  Awake (S0) is always supported,