acpi - Incidental MPSAFE (2)
commit7252c37c03a7b48ac469f92cfbf508c0f41b672b
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 11 Jan 2017 21:11:48 +0000 (11 13:11 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 11 Jan 2017 21:11:48 +0000 (11 13:11 -0800)
tree621a89b7bea48b851525ee466ae041b1eb9a6b6e
parentd4d9221d2a33e598530c0061631bad0ac70dca05
acpi - Incidental MPSAFE (2)

* The changes in a639f788 revealed bubgs in acpi_thermal's support
  threads.  These threads start executing before the main acpi device
  finishes its attach.  The mplock serialization saved us before, and
  removing it revealed the problem.

* Force serialization using the main acpi lock to prevent the support
  threads from starting up until after the main acpi attach has
  completed.

Reported-by: swildner
sys/dev/acpica/acpi.c
sys/dev/acpica/acpi_thermal.c