summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2008-03-26 13:25:27 +0000
committerphk <phk@FreeBSD.org>2008-03-26 13:25:27 +0000
commit44bfb30efdba0d9e7610adc1f78c743a11e6e49d (patch)
tree029f3f74cc9c75264d9234377a8db078d9759cb6 /sys
parent6f9c1b7d4776925aa7a6446151e8f9c1ffd6119f (diff)
downloadFreeBSD-src-44bfb30efdba0d9e7610adc1f78c743a11e6e49d.zip
FreeBSD-src-44bfb30efdba0d9e7610adc1f78c743a11e6e49d.tar.gz
The RTC related pscnt and psdiv variables have no business being public.
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/include/clock.h2
-rw-r--r--sys/amd64/isa/clock.c4
-rw-r--r--sys/i386/include/clock.h2
-rw-r--r--sys/i386/isa/clock.c4
-rw-r--r--sys/isa/atrtc.c4
-rw-r--r--sys/pc98/cbus/clock.c2
-rw-r--r--sys/pc98/cbus/pcrtc.c2
7 files changed, 6 insertions, 14 deletions
diff --git a/sys/amd64/include/clock.h b/sys/amd64/include/clock.h
index 9a6876e..93e1449 100644
--- a/sys/amd64/include/clock.h
+++ b/sys/amd64/include/clock.h
@@ -15,8 +15,6 @@
* XXX large parts of the driver and its interface are misplaced.
*/
extern int clkintr_pending;
-extern int pscnt;
-extern int psdiv;
extern int statclock_disable;
extern u_int timer_freq;
extern int timer0_max_count;
diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c
index 3275267..64d2208 100644
--- a/sys/amd64/isa/clock.c
+++ b/sys/amd64/isa/clock.c
@@ -97,8 +97,8 @@ __FBSDID("$FreeBSD$");
#define TIMER_DIV(x) ((timer_freq + (x) / 2) / (x))
int clkintr_pending;
-int pscnt = 1;
-int psdiv = 1;
+static int pscnt = 1;
+static int psdiv = 1;
int statclock_disable;
#ifndef TIMER_FREQ
#define TIMER_FREQ 1193182
diff --git a/sys/i386/include/clock.h b/sys/i386/include/clock.h
index 9bdd421..74fc023 100644
--- a/sys/i386/include/clock.h
+++ b/sys/i386/include/clock.h
@@ -15,8 +15,6 @@
* XXX large parts of the driver and its interface are misplaced.
*/
extern int clkintr_pending;
-extern int pscnt;
-extern int psdiv;
extern int statclock_disable;
extern u_int timer_freq;
extern int timer0_max_count;
diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c
index f31c7ea..c710308 100644
--- a/sys/i386/isa/clock.c
+++ b/sys/i386/isa/clock.c
@@ -100,8 +100,8 @@ __FBSDID("$FreeBSD$");
#define TIMER_DIV(x) ((timer_freq + (x) / 2) / (x))
int clkintr_pending;
-int pscnt = 1;
-int psdiv = 1;
+static int pscnt = 1;
+static int psdiv = 1;
int statclock_disable;
#ifndef TIMER_FREQ
#define TIMER_FREQ 1193182
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c
index f31c7ea..c710308 100644
--- a/sys/isa/atrtc.c
+++ b/sys/isa/atrtc.c
@@ -100,8 +100,8 @@ __FBSDID("$FreeBSD$");
#define TIMER_DIV(x) ((timer_freq + (x) / 2) / (x))
int clkintr_pending;
-int pscnt = 1;
-int psdiv = 1;
+static int pscnt = 1;
+static int psdiv = 1;
int statclock_disable;
#ifndef TIMER_FREQ
#define TIMER_FREQ 1193182
diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c
index 037ef40..fdc3cc3 100644
--- a/sys/pc98/cbus/clock.c
+++ b/sys/pc98/cbus/clock.c
@@ -96,8 +96,6 @@ __FBSDID("$FreeBSD$");
#define TIMER_DIV(x) ((timer_freq + (x) / 2) / (x))
int clkintr_pending;
-int pscnt = 1;
-int psdiv = 1;
int statclock_disable;
#ifndef TIMER_FREQ
#define TIMER_FREQ 2457600
diff --git a/sys/pc98/cbus/pcrtc.c b/sys/pc98/cbus/pcrtc.c
index 037ef40..fdc3cc3 100644
--- a/sys/pc98/cbus/pcrtc.c
+++ b/sys/pc98/cbus/pcrtc.c
@@ -96,8 +96,6 @@ __FBSDID("$FreeBSD$");
#define TIMER_DIV(x) ((timer_freq + (x) / 2) / (x))
int clkintr_pending;
-int pscnt = 1;
-int psdiv = 1;
int statclock_disable;
#ifndef TIMER_FREQ
#define TIMER_FREQ 2457600
OpenPOWER on IntegriCloud