Commiting now so that tests can be done by more people before release.
At the last moment, we can pull this change out.
-/* $OpenBSD: acpi_x86.c,v 1.30 2024/08/13 22:31:16 deraadt Exp $ */
+/* $OpenBSD: acpi_x86.c,v 1.31 2024/08/31 15:53:44 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
case SLEEP_SUSPEND:
sc->sc_state = ACPI_STATE_S3;
#ifdef __amd64__
+ if (sc->sc_fadt->flags & FADT_POWER_S0_IDLE_CAPABLE)
+ sc->sc_state = ACPI_STATE_S0;
fallback_state = ACPI_STATE_S0; /* No S3, use S0 */
#endif
break;