summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/kern_clock.c2
-rw-r--r--sys/sys/systm.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c
index d5c2f3b..d9a82d2 100644
--- a/sys/kern/kern_clock.c
+++ b/sys/kern/kern_clock.c
@@ -85,7 +85,7 @@ SYSINIT(clocks, SI_SUB_CLOCKS, SI_ORDER_FIRST, initclocks, NULL)
long cp_time[CPUSTATES];
/* Spin-lock protecting profiling statistics. */
-struct mtx time_lock;
+static struct mtx time_lock;
static int
sysctl_kern_cp_time(SYSCTL_HANDLER_ARGS)
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index dc07e65..817982c 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -71,8 +71,6 @@ extern int bootverbose; /* nonzero to print verbose messages */
extern int maxusers; /* system tune hint */
-extern struct mtx time_lock; /* time lock for profiling */
-
#ifdef INVARIANTS /* The option is always available */
#define KASSERT(exp,msg) do { \
if (__predict_false(!(exp))) \
OpenPOWER on IntegriCloud