diff options
author | George Koehler <gkoehler@cvs.openbsd.org> | 2022-10-23 03:43:04 +0000 |
---|---|---|
committer | George Koehler <gkoehler@cvs.openbsd.org> | 2022-10-23 03:43:04 +0000 |
commit | 2243a80c5b2d51453a98c8b6427488c2c0966cae (patch) | |
tree | eb608437715097985a4113a5f8a8162cace1d17f /sys/ddb | |
parent | 0c3e3ee9594c56c222155b741f783ef840417d36 (diff) |
Connect macppc's power button and lid to the SUSPEND stubs
A kernel with option SUSPEND now calls gosleep() if I run zzz(8),
press the power button (when machdep.pwraction=2), or close the lid
(when machdep.lidaction=1). Because gosleep() is an empty stub, the
macppc does not really suspend; it only suspends some devices and
immediately resumes.
The interrupt from the power button or the lid needs some thread
(other than systq) to call sleep_state(). Use taskq_create(9) to
create another thread.
Add a call to device_register_wakeup(). Without this call,
sleep_state() does nothing.
ok kettenis@ deraadt@
Diffstat (limited to 'sys/ddb')
0 files changed, 0 insertions, 0 deletions