diff options
author | phk <phk@FreeBSD.org> | 1998-11-08 19:26:23 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1998-11-08 19:26:23 +0000 |
commit | b75b623eaad2308755376753fbb2c2235baa08b9 (patch) | |
tree | 6644e302cfde870ac16d3ceb145c160237088150 /sys | |
parent | f8540e50304f6b4a60b0f1fd432dc3d370f84150 (diff) | |
download | FreeBSD-src-b75b623eaad2308755376753fbb2c2235baa08b9.zip FreeBSD-src-b75b623eaad2308755376753fbb2c2235baa08b9.tar.gz |
Update interface to timecounter to last change to the generic code.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/alpha/alpha/clock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/alpha/alpha/clock.c b/sys/alpha/alpha/clock.c index ef32268..649b8ca 100644 --- a/sys/alpha/alpha/clock.c +++ b/sys/alpha/alpha/clock.c @@ -1,4 +1,4 @@ -/* $Id: clock.c,v 1.3 1998/07/22 08:16:34 dfr Exp $ */ +/* $Id: clock.c,v 1.4 1998/10/06 08:40:18 dfr Exp $ */ /* $NetBSD: clock.c,v 1.20 1998/01/31 10:32:47 ross Exp $ */ /* @@ -77,7 +77,7 @@ extern int cycles_per_sec; static timecounter_get_t alpha_get_timecount; static timecounter_pps_t alpha_poll_pps; -static struct timecounter alpha_timecounter[3] = { +static struct timecounter alpha_timecounter = { alpha_get_timecount, /* get_timecount */ 0, /* no poll_pps */ ~0u, /* counter_mask */ @@ -86,7 +86,7 @@ static struct timecounter alpha_timecounter[3] = { }; SYSCTL_OPAQUE(_debug, OID_AUTO, alpha_timecounter, CTLFLAG_RD, - alpha_timecounter, sizeof(alpha_timecounter), "S,timecounter", ""); + &alpha_timecounter, sizeof(alpha_timecounter), "S,timecounter", ""); /* Values for timerX_state: */ #define RELEASED 0 @@ -178,8 +178,8 @@ cpu_initclocks() scaled_ticks_per_cycle = ((u_int64_t)hz << FIX_SHIFT) / cycles_per_sec; max_cycles_per_tick = 2*cycles_per_sec / hz; - alpha_timecounter[0].tc_frequency = cycles_per_sec; - init_timecounter(alpha_timecounter); + alpha_timecounter.tc_frequency = cycles_per_sec; + init_timecounter(&alpha_timecounter); platform.clockintr = (void (*) __P((void *))) handleclock; |