Implement the guts for "suspend-to-idle" on amd64. This enables suspend
authorkettenis <kettenis@openbsd.org>
Wed, 29 May 2024 12:21:33 +0000 (12:21 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 29 May 2024 12:21:33 +0000 (12:21 +0000)
commitba5ad174f4b89249eeb2724491bc0ea7e0d4fa0c
tree35f21e96c57e2609497f52aa79d953fbdef5fcbb
parentcd5e2f786e137fcba5c0b385dfdc84505e4c9684
Implement the guts for "suspend-to-idle" on amd64.  This enables suspend
on machines that don't support S3.  In its current state it doesn't save
a lot of power, but this should improve over time.  Implementation of
wakeup methods is incomplete which means that some machine can't resume
at the moment.

ok mglocker@, mlarkin@, stsp@, deraadt@
sys/arch/amd64/amd64/acpi_machdep.c
sys/arch/amd64/amd64/cpu.c
sys/arch/amd64/amd64/intr.c
sys/arch/amd64/include/cpu.h
sys/arch/i386/i386/cpu.c
sys/dev/acpi/acpi.c
sys/dev/acpi/acpi_x86.c
sys/dev/acpi/tpm.c