summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-01-28 20:26:39 +0000
committerjhb <jhb@FreeBSD.org>2004-01-28 20:26:39 +0000
commit45e377d906380622fc58dbee7caa00d93d2e80e8 (patch)
tree0ea8696e9ee4ede6312531b28f15ef340990139a /sys
parentb329bb8a2cfc1fb9e2950801b3b871738397a7f1 (diff)
downloadFreeBSD-src-45e377d906380622fc58dbee7caa00d93d2e80e8.zip
FreeBSD-src-45e377d906380622fc58dbee7caa00d93d2e80e8.tar.gz
Use mtx_assert() rather than using a home-rolled version.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_kse.c2
-rw-r--r--sys/kern/kern_thread.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c
index 1a3ae43..3adc8ae 100644
--- a/sys/kern/kern_kse.c
+++ b/sys/kern/kern_kse.c
@@ -1255,7 +1255,7 @@ thread_exit(void)
KASSERT(kg != NULL, ("thread exiting without a kse group"));
PROC_LOCK_ASSERT(p, MA_OWNED);
CTR1(KTR_PROC, "thread_exit: thread %p", td);
- KASSERT(!mtx_owned(&Giant), ("dying thread owns giant"));
+ mtx_assert(&Giant, MA_NOTOWNED);
if (td->td_standin != NULL) {
thread_stash(td->td_standin);
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
index 1a3ae43..3adc8ae 100644
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -1255,7 +1255,7 @@ thread_exit(void)
KASSERT(kg != NULL, ("thread exiting without a kse group"));
PROC_LOCK_ASSERT(p, MA_OWNED);
CTR1(KTR_PROC, "thread_exit: thread %p", td);
- KASSERT(!mtx_owned(&Giant), ("dying thread owns giant"));
+ mtx_assert(&Giant, MA_NOTOWNED);
if (td->td_standin != NULL) {
thread_stash(td->td_standin);
OpenPOWER on IntegriCloud