summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/isa/ithread.c1
-rw-r--r--sys/i386/isa/ithread.c1
2 files changed, 2 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) {
diff --git a/sys/i386/isa/ithread.c b/sys/i386/isa/ithread.c
index 17a91f4..986e41d 100644
--- a/sys/i386/isa/ithread.c
+++ b/sys/i386/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