summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordan <dan@FreeBSD.org>2002-03-30 03:52:52 +0000
committerdan <dan@FreeBSD.org>2002-03-30 03:52:52 +0000
commitade94cf6223e6629f571232e9866cc7133931b09 (patch)
treec7c34e329f00cd05951eaeb85bc95520080c9009
parent4dfcd8bee40a0f54f8feae912a9b1062eea0d220 (diff)
downloadFreeBSD-src-ade94cf6223e6629f571232e9866cc7133931b09.zip
FreeBSD-src-ade94cf6223e6629f571232e9866cc7133931b09.tar.gz
Nuke CV_DEBUG in favour of INVARIANTS.
Approved by: jhb
-rw-r--r--sys/conf/options1
-rw-r--r--sys/kern/kern_condvar.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/sys/conf/options b/sys/conf/options
index 58e4fe3..b67aaf4 100644
--- a/sys/conf/options
+++ b/sys/conf/options
@@ -498,7 +498,6 @@ KTR_ENTRIES opt_global.h
KTR_EXTEND opt_global.h
KTR_VERBOSE opt_ktr.h
MUTEX_DEBUG opt_global.h
-CV_DEBUG opt_global.h
WITNESS opt_global.h
WITNESS_DDB opt_witness.h
WITNESS_SKIPSPIN opt_witness.h
diff --git a/sys/kern/kern_condvar.c b/sys/kern/kern_condvar.c
index fe88c55..ba191701 100644
--- a/sys/kern/kern_condvar.c
+++ b/sys/kern/kern_condvar.c
@@ -54,7 +54,7 @@
mtx_assert((mp), MA_OWNED | MA_NOTRECURSED); \
} while (0)
-#ifdef CV_DEBUG
+#ifdef INVARIANTS
#define CV_WAIT_VALIDATE(cvp, mp) do { \
if (TAILQ_EMPTY(&(cvp)->cv_waitq)) { \
/* Only waiter. */ \
OpenPOWER on IntegriCloud