summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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