diff options
author | obrien <obrien@FreeBSD.org> | 2000-03-23 10:22:52 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-03-23 10:22:52 +0000 |
commit | 80e776a27e777fdce11ec53d8c01e74eb1b9b673 (patch) | |
tree | 11cf83f8bad196b24ed2f1290df39badbd69f02d | |
parent | 13cef0c010be3315fcfa5a6f3ddbe31584d4c032 (diff) | |
download | FreeBSD-src-80e776a27e777fdce11ec53d8c01e74eb1b9b673.zip FreeBSD-src-80e776a27e777fdce11ec53d8c01e74eb1b9b673.tar.gz |
Switch to the new time counter code to follow the i386.
Assisted by: phk
-rw-r--r-- | sys/alpha/alpha/clock.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/alpha/alpha/clock.c b/sys/alpha/alpha/clock.c index b00a895..e320aba 100644 --- a/sys/alpha/alpha/clock.c +++ b/sys/alpha/alpha/clock.c @@ -51,6 +51,7 @@ #include <sys/sysctl.h> #include <sys/systm.h> #include <sys/bus.h> +#include <sys/timetc.h> #include <machine/cpuconf.h> #include <machine/clock.h> @@ -189,7 +190,7 @@ cpu_initclocks() max_cycles_per_tick = 2*freq / hz; alpha_timecounter.tc_frequency = freq; - init_timecounter(&alpha_timecounter); + tc_init(&alpha_timecounter); stathz = 128; platform.clockintr = (void (*) __P((void *))) handleclock; @@ -329,7 +330,7 @@ inittodr(base) s = splclock(); ts.tv_sec = base; ts.tv_nsec = 0; - set_timecounter(&ts); + tc_setclock(&ts); splx(s); if (!badbase) { printf("WARNING: preposterous clock chip time\n"); @@ -350,7 +351,7 @@ inittodr(base) if (wall_cmos_clock) ts.tv_sec += adjkerntz; ts.tv_nsec = 0; - set_timecounter(&ts); + tc_setclock(&ts); splx(s); if (!badbase) { |