Nate Lawson 35440dd3e9 AcpiAcquireGlobalLock() can sometimes sleep if the mutex is contested.
The global lock is a memory region shared with the BIOS and thus
has some strange behavior like the fact that the sleep is 1 ms max.
We use standard mutexes to synchronize with the SCI so acquiring
the global lock after locking the mutex resulted in a witness
warning.

To deal with this for now, acquire the global lock before all other
locks, similar to Giant.  This should fix the witness "sleeping
with mutex held" issue on boot that occurred after the last ACPI-CA
import.  In the future, we hope to move to the new mutex interface
in ACPI-CA instead of the pseudo-semaphore version we have now.

Reviewed by:    jkim
2007-06-02 19:21:40 +00:00
..
2007-05-16 23:34:11 +00:00
2007-05-14 22:01:03 +00:00
2007-02-23 19:27:49 +00:00
2007-05-21 12:17:54 +00:00
2007-03-21 03:42:51 +00:00
2007-02-23 19:34:52 +00:00
2007-04-25 01:20:31 +00:00
2007-03-11 15:20:04 +00:00
2007-03-21 03:42:51 +00:00
2007-03-23 22:48:44 +00:00
2007-05-25 13:13:12 +00:00
2007-05-19 10:12:58 +00:00
2007-05-17 04:07:19 +00:00
2007-03-21 03:42:51 +00:00
2007-04-23 12:19:02 +00:00