summaryrefslogtreecommitdiff
path: root/sys/alpha/alpha/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/alpha/alpha/clock.c')
-rw-r--r--sys/alpha/alpha/clock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/alpha/alpha/clock.c b/sys/alpha/alpha/clock.c
index 649b8caeddd46..ef32268fa8cca 100644
--- a/sys/alpha/alpha/clock.c
+++ b/sys/alpha/alpha/clock.c
@@ -1,4 +1,4 @@
-/* $Id: clock.c,v 1.4 1998/10/06 08:40:18 dfr Exp $ */
+/* $Id: clock.c,v 1.3 1998/07/22 08:16:34 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 = {
+static struct timecounter alpha_timecounter[3] = {
alpha_get_timecount, /* get_timecount */
0, /* no poll_pps */
~0u, /* counter_mask */
@@ -86,7 +86,7 @@ static struct timecounter alpha_timecounter = {
};
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.tc_frequency = cycles_per_sec;
- init_timecounter(&alpha_timecounter);
+ alpha_timecounter[0].tc_frequency = cycles_per_sec;
+ init_timecounter(alpha_timecounter);
platform.clockintr = (void (*) __P((void *))) handleclock;