If the lid is closed, suspend_finish() now returns EAGAIN, so go to the top
authorderaadt <deraadt@openbsd.org>
Wed, 16 Feb 2022 06:47:28 +0000 (06:47 +0000)
committerderaadt <deraadt@openbsd.org>
Wed, 16 Feb 2022 06:47:28 +0000 (06:47 +0000)
commitfd33afa7d077ee50df018d6d60f253c17f939f38
tree3b5e039d0ba596acb1189a926046c6c14f850cde
parent4a9a38d55a6d5b6f52bfcbce33d8ce80b61369ca
If the lid is closed, suspend_finish() now returns EAGAIN, so go to the top
and restart the suspend all over again.  This was previously done by issuing
a task to the acpi thread, but this is simpler.
(I want to try to duplicate these tests earlier in the resume path...)
sys/kern/subr_suspend.c