aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2026-01-09 13:43:23 +0000
committerOlivier Certner <olce@FreeBSD.org>2026-02-06 14:45:22 +0000
commitd2aa0a4dace1d0cf8d52614c25b6a8f5cf03fd32 (patch)
tree8d832c9af952191cc14c8bbb64d10dc6fba45905 /sys/amd64
parentefcc0423d80e4048e11e997abc46bd0343537e1b (diff)
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/acpica/acpi_wakeup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/acpica/acpi_wakeup.c b/sys/amd64/acpica/acpi_wakeup.c
index 8cada2f4f911..6e6b9ac618dd 100644
--- a/sys/amd64/acpica/acpi_wakeup.c
+++ b/sys/amd64/acpica/acpi_wakeup.c
@@ -218,7 +218,7 @@ acpi_sleep_machdep(struct acpi_softc *sc, int state)
WAKECODE_FIXUP(wakeup_gdt + 2, uint64_t, pcb->pcb_gdt.rd_base);
/* Call ACPICA to enter the desired sleep state */
- if (state == ACPI_STATE_S4 && sc->acpi_s4bios)
+ if (state == ACPI_STATE_S4 && acpi_should_do_s4bios(sc))
status = AcpiEnterSleepStateS4bios();
else
status = AcpiEnterSleepState(state);