diff options
author | julian <julian@FreeBSD.org> | 2007-11-14 05:43:55 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2007-11-14 05:43:55 +0000 |
commit | 760b9605ef7227e5fd9997437caddc0a708753b9 (patch) | |
tree | d3ccd8ab6082d9786b177544c5cda4a467c013ac /sys/kern/kern_mutex.c | |
parent | 797a1fb530d34c31f12117fb8d185d501d06b325 (diff) | |
download | FreeBSD-src-760b9605ef7227e5fd9997437caddc0a708753b9.zip FreeBSD-src-760b9605ef7227e5fd9997437caddc0a708753b9.tar.gz |
Apply the same sort of locking done in
sys/dev/acpica/acpi.c rev 1.196 a while ago:
Grab Giant around calls to DEVICE_SUSPEND/RESUME in
acpi_SetSleepState().
If we are resuming non-MPSAFE drivers, they need Giant held for them.
This may fix some obscure suspend/resume problems. It has fixed keyrate
setting problems that were triggered by cardbus (MPSAFE) changing the
ordering for syscons resume (non-MPSAFE). Also, add some asserts that
Giant is held in our suspend/resume and shutdown methods.
Submitted by: Marko Zec
Diffstat (limited to 'sys/kern/kern_mutex.c')
0 files changed, 0 insertions, 0 deletions