The suspend/resume code is a sticky mess of MI, MD, and ACPI sequencing.
authorderaadt <deraadt@openbsd.org>
Tue, 8 Feb 2022 17:25:10 +0000 (17:25 +0000)
committerderaadt <deraadt@openbsd.org>
Tue, 8 Feb 2022 17:25:10 +0000 (17:25 +0000)
commitad814436a071b6401bfaf527a709138b9bf992e2
tree4334e21461dcdcbb785fb202ce221ed7d7ca119e
parentc82531211f007111cbce920e554ed1362e5f0476
The suspend/resume code is a sticky mess of MI, MD, and ACPI sequencing.
This splits out the MI sequencing, backing it with per-architecture helper
functions.  Further steps will be neccesary because ACPI and MD are too
tightly coupled, but soon we'll be able to use this code for more architectures
(which depends on figuring out the lowest-level cpu sleeping method)
ok kettenis
14 files changed:
sys/arch/amd64/amd64/acpi_machdep.c
sys/arch/amd64/conf/GENERIC
sys/arch/arm64/arm64/acpi_machdep.c
sys/arch/i386/conf/GENERIC
sys/arch/i386/i386/acpi_machdep.c
sys/conf/files
sys/dev/acpi/acpi.c
sys/dev/acpi/acpibtn.c
sys/dev/acpi/acpisony.c
sys/dev/acpi/acpithinkpad.c
sys/dev/acpi/acpitoshiba.c
sys/dev/acpi/acpivar.h
sys/kern/subr_suspend.c [new file with mode: 0644]
sys/sys/device.h