summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-11-15 22:03:26 +0000
committerjhb <jhb@FreeBSD.org>2000-11-15 22:03:26 +0000
commit27f47c82c21d5f4b9b46dd11f719195d61c02365 (patch)
tree05006e97d54c7fa924cabb01c32d29cfdb2fa941 /sys/amd64
parentd2a25c57e91fab801c4c251dd3e1fcf3bdcdffe8 (diff)
downloadFreeBSD-src-27f47c82c21d5f4b9b46dd11f719195d61c02365.zip
FreeBSD-src-27f47c82c21d5f4b9b46dd11f719195d61c02365.tar.gz
Assert that Giant is not owned during the main loop of ithd_loop().
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/isa/ithread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/isa/ithread.c b/sys/amd64/isa/ithread.c
index 17a91f4..986e41d 100644
--- a/sys/amd64/isa/ithread.c
+++ b/sys/amd64/isa/ithread.c
@@ -220,6 +220,7 @@ ithd_loop(void *dummy)
* lock. This may take a while and it_need may get
* set again, so we have to check it again.
*/
+ mtx_assert(&Giant, MA_NOTOWNED);
mtx_enter(&sched_lock, MTX_SPIN);
if (!me->it_need) {
OpenPOWER on IntegriCloud