summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 6be7589..dc88b6f 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 6be7589..dc88b6f 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 6be7589..dc88b6f 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;
OpenPOWER on IntegriCloud