aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include/clock.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1997-12-28 17:33:10 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1997-12-28 17:33:10 +0000
commit0f12aa9ffd2c88f3ee8bc1a60d2e4878a6bc6945 (patch)
tree5040647866e8fcd9992f67517af6c63af1e86d2a /sys/i386/include/clock.h
parentd46e059f94e6ac8331f93059b47a9be5b3b7c7fd (diff)
More cleanup relating to our use of the TSC.
Look in the cpu_feature (CPUID output) to see if we have it.
Notes
Notes: svn path=/head/; revision=32054
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 505ea4868fe8..a8f2d5a7efa3 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 */