mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Actually enable the witness code if the WITNESS kernel option is enabled.
This commit is contained in:
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
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue