Declare the 'witness_spin_check' properly as a per-CPU variable in the

non-SMP case.
This commit is contained in:
John Baldwin 2000-11-15 22:02:05 +00:00
parent ecbd8e3710
commit 59f857e4ea
4 changed files with 1 additions and 12 deletions

View File

@ -135,6 +135,7 @@ extern struct proc *npxproc;
extern int switchticks; /* `ticks' at last context switch. */
extern struct timeval switchtime; /* Uptime at last context switch. */
extern struct segment_descriptor *tss_gdt;
extern int witness_spin_check;
#endif /* SMP || KLD_MODULE */

View File

@ -656,10 +656,6 @@ mtx_destroy(struct mtx *m)
#define WITNESS_COUNT 200
#define WITNESS_NCHILDREN 2
#ifndef SMP
extern int witness_spin_check;
#endif
int witness_watch = 1;
struct witness {

View File

@ -656,10 +656,6 @@ mtx_destroy(struct mtx *m)
#define WITNESS_COUNT 200
#define WITNESS_NCHILDREN 2
#ifndef SMP
extern int witness_spin_check;
#endif
int witness_watch = 1;
struct witness {

View File

@ -656,10 +656,6 @@ mtx_destroy(struct mtx *m)
#define WITNESS_COUNT 200
#define WITNESS_NCHILDREN 2
#ifndef SMP
extern int witness_spin_check;
#endif
int witness_watch = 1;
struct witness {