Sensors are run as callbacks inside tasks. During suspend a sensor
authorderaadt <deraadt@openbsd.org>
Sat, 8 Apr 2017 04:06:01 +0000 (04:06 +0000)
committerderaadt <deraadt@openbsd.org>
Sat, 8 Apr 2017 04:06:01 +0000 (04:06 +0000)
commit1b45cbc27347f889e04be0be3ce83e79d5792222
treeec5b0e380c45bd04dd9dc193895b25c60b803ba2
parent0e71ef472d0888ae76616ed3e64a5bb2b44ba085
Sensors are run as callbacks inside tasks.  During suspend a sensor
could be running inside a driver that will be force-detached, or due
to tsleep end up disrupting the softstate/hardstate contract.  At
suspend time, quisce all these callbacks by waiting for completion.
This issue has never been observed for real, but may be implicated in
suspend/resume failures.
ok kettenis guenther mlarkin
sys/dev/acpi/acpi.c
sys/kern/kern_sensors.c
sys/sys/sensors.h