summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/clock.h
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-12-24 08:10:52 +0000
committerdg <dg@FreeBSD.org>1995-12-24 08:10:52 +0000
commit86c06a33bbd0e32af5fe2e3e99d092f5cf3b66cb (patch)
tree6e21222a077a727e2169f1241364da74f0b74c3e /sys/i386/include/clock.h
parent57c9be3bacec37313a865b8605f8cebe630e0905 (diff)
downloadFreeBSD-src-86c06a33bbd0e32af5fe2e3e99d092f5cf3b66cb.zip
FreeBSD-src-86c06a33bbd0e32af5fe2e3e99d092f5cf3b66cb.tar.gz
Add Pentium Pro CPU detection and special handling. For now, all the
optimizations we have for 586s also apply to 686s...this will be fine- tuned in the future as appropriate.
Diffstat (limited to 'sys/i386/include/clock.h')
-rw-r--r--sys/i386/include/clock.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/i386/include/clock.h b/sys/i386/include/clock.h
index 542e628..1f63bfe 100644
--- a/sys/i386/include/clock.h
+++ b/sys/i386/include/clock.h
@@ -3,13 +3,13 @@
* Garrett Wollman, September 1994.
* This file is in the public domain.
*
- * $Id: clock.h,v 1.6 1995/11/29 19:57:16 wollman Exp $
+ * $Id: clock.h,v 1.7 1995/12/10 13:38:07 phk Exp $
*/
#ifndef _MACHINE_CLOCK_H_
#define _MACHINE_CLOCK_H_
-#ifdef I586_CPU
+#if defined(I586_CPU) || defined(I686_CPU)
#define I586_CYCLECTR(x) \
__asm __volatile(".byte 0x0f, 0x31" : "=A" (x))
@@ -54,7 +54,7 @@
*/
extern int adjkerntz;
extern int disable_rtc_set;
-#ifdef I586_CPU
+#if defined(I586_CPU) || defined(I686_CPU)
extern unsigned i586_ctr_rate; /* fixed point */
extern long long i586_last_tick;
extern long long i586_ctr_bias;
@@ -63,11 +63,11 @@ extern int timer0_max_count;
extern u_int timer0_overflow_threshold;
extern u_int timer0_prescaler_count;
-#ifdef I586_CPU
+#if defined(I586_CPU) || defined(I686_CPU)
void calibrate_cyclecounter __P((void));
#endif
-#ifdef I586_CPU
+#if defined(I586_CPU) || defined(I686_CPU)
static __inline u_long
cpu_thisticklen(u_long dflt)
{
OpenPOWER on IntegriCloud