kernel - acpi - fix thermal thread loop
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 15 Feb 2010 05:37:01 +0000 (21:37 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 15 Feb 2010 05:37:01 +0000 (21:37 -0800)
commit904de2e2e15197210e6741487615f78377366923
tree72e20ca07df9b2018c2f0dbd66a719c0d6e133f4
parent9cac2c041a37836f28d60c2a2ae34b8c64120e66
kernel - acpi - fix thermal thread loop

* The thermal thread was sleeping in tzpool with the thermal lock held,
  causing anyone trying to use the lock (e.g. apm) to block for very
  long periods of time (sometimes forever).

* Properly drop the lock when sleeping.
sys/dev/acpica5/acpi_thermal.c