aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2000-10-20 21:58:11 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2000-10-20 21:58:11 +0000
commit78f0da0373e4d5884ec58bf0b2294fac59685a0d (patch)
treeb16651fc4be16f184b7d0ef7acaaccc7d702ddff
parentf40ed9c2e461f6d2cb2ae6c6c71b97ed9abb0d8e (diff)
Notes
-rw-r--r--sys/kern/kern_mutex.c6
-rw-r--r--sys/kern/subr_turnstile.c6
-rw-r--r--sys/kern/subr_witness.c6
3 files changed, 3 insertions, 15 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index 6be75899b33ee..dc88b6fa64cc1 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -653,15 +653,11 @@ mtx_destroy(struct mtx *m)
#define WITNESS_COUNT 200
#define WITNESS_NCHILDREN 2
-#ifndef WITNESS
-#define WITNESS 0 /* default off */
-#endif
-
#ifndef SMP
extern int witness_spin_check;
#endif
-int witness_watch;
+int witness_watch = 1;
struct witness {
struct witness *w_next;
diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c
index 6be75899b33ee..dc88b6fa64cc1 100644
--- a/sys/kern/subr_turnstile.c
+++ b/sys/kern/subr_turnstile.c
@@ -653,15 +653,11 @@ mtx_destroy(struct mtx *m)
#define WITNESS_COUNT 200
#define WITNESS_NCHILDREN 2
-#ifndef WITNESS
-#define WITNESS 0 /* default off */
-#endif
-
#ifndef SMP
extern int witness_spin_check;
#endif
-int witness_watch;
+int witness_watch = 1;
struct witness {
struct witness *w_next;
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 6be75899b33ee..dc88b6fa64cc1 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -653,15 +653,11 @@ mtx_destroy(struct mtx *m)
#define WITNESS_COUNT 200
#define WITNESS_NCHILDREN 2
-#ifndef WITNESS
-#define WITNESS 0 /* default off */
-#endif
-
#ifndef SMP
extern int witness_spin_check;
#endif
-int witness_watch;
+int witness_watch = 1;
struct witness {
struct witness *w_next;