diff options
author | bde <bde@FreeBSD.org> | 1996-07-30 19:26:55 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-07-30 19:26:55 +0000 |
commit | 008531d59980ae7a5f7f3090057a8fdea1e63d5e (patch) | |
tree | 4d6daaea7044e1e95f0e1dfcbd5cdedb651b7567 /sys/i386/include/clock.h | |
parent | 50a3e4ed9e414f69f86253ea0bf631d402af6571 (diff) | |
download | FreeBSD-src-008531d59980ae7a5f7f3090057a8fdea1e63d5e.zip FreeBSD-src-008531d59980ae7a5f7f3090057a8fdea1e63d5e.tar.gz |
Fixed the machdep.i8254_freq and machdep.i586_freq sysctls. Writes were
handled bogusly.
Centralized the setting of all the frequency variables. Set these
variables atomically. Some new ones aren't used yet.
Diffstat (limited to 'sys/i386/include/clock.h')
-rw-r--r-- | sys/i386/include/clock.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/i386/include/clock.h b/sys/i386/include/clock.h index 830ae13..0439363 100644 --- a/sys/i386/include/clock.h +++ b/sys/i386/include/clock.h @@ -3,7 +3,7 @@ * Garrett Wollman, September 1994. * This file is in the public domain. * - * $Id: clock.h,v 1.13 1996/05/01 08:38:50 bde Exp $ + * $Id: clock.h,v 1.14 1996/06/14 11:00:56 asami Exp $ */ #ifndef _MACHINE_CLOCK_H_ @@ -38,6 +38,8 @@ #define CPU_THISTICKLEN(dflt) dflt #endif +#define I586_CTR_COMULTIPLIER_SHIFT 20 +#define I586_CTR_MULTIPLIER_SHIFT 32 #define I586_CTR_RATE_SHIFT 8 #if defined(KERNEL) && !defined(LOCORE) @@ -55,7 +57,9 @@ extern int statclock_disable; extern int wall_cmos_clock; #if defined(I586_CPU) || defined(I686_CPU) -extern unsigned i586_ctr_freq; +extern u_int i586_ctr_comultiplier; +extern u_int i586_ctr_freq; +extern u_int i586_ctr_multiplier; extern unsigned i586_ctr_rate; /* fixed point */ extern long long i586_last_tick; extern long long i586_ctr_bias; |