summaryrefslogtreecommitdiffstats
path: root/sys/isa
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2001-02-19 03:00:34 +0000
committerbde <bde@FreeBSD.org>2001-02-19 03:00:34 +0000
commit405108c6cdec7aa38d58c740b468341671eca930 (patch)
treea53602022603b9eeeb2bc5dbea7a37e3d31b8d08 /sys/isa
parent336d5fa6f80386b02737b8b1e00d1cb64771740f (diff)
downloadFreeBSD-src-405108c6cdec7aa38d58c740b468341671eca930.zip
FreeBSD-src-405108c6cdec7aa38d58c740b468341671eca930.tar.gz
Fixed style bugs in clock.c rev.1.164 and cpu.h rev.1.52-1.53 -- declare
tsc_present in the right places (together with other variables of the same linkage), and don't use messy ifdefs just to avoid exporting it in some cases.
Diffstat (limited to 'sys/isa')
-rw-r--r--sys/isa/atrtc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c
index 5edd84b..7d8edac 100644
--- a/sys/isa/atrtc.c
+++ b/sys/isa/atrtc.c
@@ -139,6 +139,7 @@ u_int timer_freq = TIMER_FREQ;
int timer0_max_count;
u_int tsc_freq;
int tsc_is_broken;
+u_int tsc_present;
int wall_cmos_clock; /* wall CMOS clock assumed if != 0 */
struct mtx clock_lock;
@@ -169,12 +170,6 @@ static u_int timer0_prescaler_count;
static u_char timer0_state;
static u_char timer2_state;
static void (*timer_func) __P((struct clockframe *frame)) = hardclock;
-#if defined(I386_CPU) || defined(I486_CPU)
- u_int tsc_present; /* Not static; other parts of the kernel
- * Need to know this */
-#else
-static u_int tsc_present;
-#endif
static unsigned i8254_get_timecount __P((struct timecounter *tc));
static unsigned tsc_get_timecount __P((struct timecounter *tc));
OpenPOWER on IntegriCloud