Actually enable the witness code if the WITNESS kernel option is enabled.

This commit is contained in:
John Baldwin 2000-10-20 21:58:11 +00:00
parent f40ed9c2e4
commit 78f0da0373
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67401
3 changed files with 3 additions and 15 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;