From 44bfb30efdba0d9e7610adc1f78c743a11e6e49d Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 26 Mar 2008 13:25:27 +0000 Subject: The RTC related pscnt and psdiv variables have no business being public. --- sys/amd64/include/clock.h | 2 -- sys/amd64/isa/clock.c | 4 ++-- sys/i386/include/clock.h | 2 -- sys/i386/isa/clock.c | 4 ++-- sys/isa/atrtc.c | 4 ++-- sys/pc98/cbus/clock.c | 2 -- sys/pc98/cbus/pcrtc.c | 2 -- 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 -- cgit v1.1