summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2000-11-15 22:02:05 +0000
committerjhb <jhb@FreeBSD.org>2000-11-15 22:02:05 +0000
commitd2a25c57e91fab801c4c251dd3e1fcf3bdcdffe8 (patch)
treedaf0adf30390fe17aaef285a7ea77ddc8baa1c4e /sys
parentc0dadb995511f7a244af3dc0ae221d626a44677c (diff)
downloadFreeBSD-src-d2a25c57e91fab801c4c251dd3e1fcf3bdcdffe8.zip
FreeBSD-src-d2a25c57e91fab801c4c251dd3e1fcf3bdcdffe8.tar.gz
Declare the 'witness_spin_check' properly as a per-CPU variable in the
non-SMP case.
Diffstat (limited to 'sys')
-rw-r--r--sys/i386/include/globals.h1
-rw-r--r--sys/kern/kern_mutex.c4
-rw-r--r--sys/kern/subr_turnstile.c4
-rw-r--r--sys/kern/subr_witness.c4
4 files changed, 1 insertions, 12 deletions
diff --git a/sys/i386/include/globals.h b/sys/i386/include/globals.h
index 846cba9..a20d83b 100644
--- a/sys/i386/include/globals.h
+++ b/sys/i386/include/globals.h
@@ -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 */
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index 4e53766..2d48653 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -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 {
diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c
index 4e53766..2d48653 100644
--- a/sys/kern/subr_turnstile.c
+++ b/sys/kern/subr_turnstile.c
@@ -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 {
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 4e53766..2d48653 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -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 {
OpenPOWER on IntegriCloud