summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/clock.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-12-28 17:33:10 +0000
committerphk <phk@FreeBSD.org>1997-12-28 17:33:10 +0000
commit87f11cf19320871fea90474134dca49de7749362 (patch)
tree6567ea6c3ae751ee6e0cae4b8ffab4e5187cb408 /sys/i386/include/clock.h
parentca105236ff16f62ac2fdcdd9591281b1a4d2995f (diff)
downloadFreeBSD-src-87f11cf19320871fea90474134dca49de7749362.zip
FreeBSD-src-87f11cf19320871fea90474134dca49de7749362.tar.gz
More cleanup relating to our use of the TSC.
Look in the cpu_feature (CPUID output) to see if we have it.
Diffstat (limited to 'sys/i386/include/clock.h')
-rw-r--r--sys/i386/include/clock.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/i386/include/clock.h b/sys/i386/include/clock.h
index 505ea48..a8f2d5a 100644
--- a/sys/i386/include/clock.h
+++ b/sys/i386/include/clock.h
@@ -3,17 +3,13 @@
* Garrett Wollman, September 1994.
* This file is in the public domain.
*
- * $Id: clock.h,v 1.28 1997/12/26 20:42:01 phk Exp $
+ * $Id: clock.h,v 1.29 1997/12/28 13:36:06 phk Exp $
*/
#ifndef _MACHINE_CLOCK_H_
#define _MACHINE_CLOCK_H_
-#if (defined(I586_CPU) || defined(I686_CPU)) && !defined(SMP)
#define CPU_CLOCKUPDATE(otime, ntime) cpu_clockupdate((otime), (ntime))
-#else
-#define CPU_CLOCKUPDATE(otime, ntime) (*(otime) = *(ntime))
-#endif
#define CPU_THISTICKLEN(dflt) dflt
@@ -33,16 +29,10 @@ extern u_int timer_freq;
extern int timer0_max_count;
extern u_int timer0_overflow_threshold;
extern u_int timer0_prescaler_count;
-#if defined(I586_CPU) || defined(I686_CPU)
-#ifndef SMP
extern u_int tsc_bias;
extern u_int tsc_comultiplier;
-#endif
extern u_int tsc_freq;
-#ifndef SMP
extern u_int tsc_multiplier;
-#endif
-#endif
extern int wall_cmos_clock;
/*
@@ -85,7 +75,6 @@ clock_latency(void)
- ((high << 8) | low));
}
-#if (defined(I586_CPU) || defined(I686_CPU)) && !defined(SMP)
/*
* When we update `time', on we also update `tsc_bias'
* atomically. `tsc_bias' is the best available approximation to
@@ -117,7 +106,6 @@ cpu_clockupdate(volatile struct timeval *otime, struct timeval *ntime)
} else
*otime = *ntime;
}
-#endif /* I586_CPU || I686_CPU */
#endif /* CLOCK_HAIR */
OpenPOWER on IntegriCloud