Adds request_sleep(), a MI way of sending the machine to sleep in
authortobhe <tobhe@openbsd.org>
Sat, 8 Jul 2023 14:44:43 +0000 (14:44 +0000)
committertobhe <tobhe@openbsd.org>
Sat, 8 Jul 2023 14:44:43 +0000 (14:44 +0000)
commit8cae9a59ce3f27648a688ac6762276e6eddfdcf1
tree67c0fca3d331dc4070a806f4c09f706c30e45cf9
parent81e3f6b17a995c6ec6b1f5251efd4b2e2f1a77e4
Adds request_sleep(), a MI way of sending the machine to sleep in
a safe thread. Support is limited to amd64, i386 and arm64 at the
moment, macppc gets only an empty stub.

feedback from kettenis@
tested by bluhm@
ok phessler@
sys/arch/arm64/dev/aplsmc.c
sys/arch/arm64/dev/apm.c
sys/arch/macppc/dev/apm.c
sys/dev/acpi/acpi_apm.c
sys/sys/device.h