diff options
author | jhb <jhb@FreeBSD.org> | 2000-10-20 21:58:11 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-10-20 21:58:11 +0000 |
commit | fe4aca63547deb06f817787baedf8a23b201b06e (patch) | |
tree | 0c99ed2259f7084b6153b90338bb2dc0959213cd /sys/kern/kern_mutex.c | |
parent | e6c559b8afd699314e4496ab7c9c8cb1ae4e85d7 (diff) | |
download | FreeBSD-src-fe4aca63547deb06f817787baedf8a23b201b06e.zip FreeBSD-src-fe4aca63547deb06f817787baedf8a23b201b06e.tar.gz |
Actually enable the witness code if the WITNESS kernel option is enabled.
Diffstat (limited to 'sys/kern/kern_mutex.c')
-rw-r--r-- | sys/kern/kern_mutex.c | 6 |
1 files changed, 1 insertions, 5 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; |