summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2007-06-02 19:21:40 +0000
committernjl <njl@FreeBSD.org>2007-06-02 19:21:40 +0000
commit1567a26ec017c50e317867657611d6dbd1b816a0 (patch)
treedaa0853e0ceddab48782ebf16e6bf45a87924925 /lib/libc
parentc14d50d1f4e55e7ade7d712cdf40128fb46c3ebb (diff)
downloadFreeBSD-src-1567a26ec017c50e317867657611d6dbd1b816a0.zip
FreeBSD-src-1567a26ec017c50e317867657611d6dbd1b816a0.tar.gz
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
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud