diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-12-28 12:06:50 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-12-28 12:06:50 +0000 |
commit | d1858f2e79c731d8dd2b4c59cf00c3f8c9d86e97 (patch) | |
tree | fcc0eecb439d273e00c152809449799148ce990a | |
parent | 417148e7c8ed4061c25ff0cc7beb82bc66535005 (diff) |
Since we don't enable interrupts until autoconf is over, we don't need
to skip the first few clock interrupts, as done on luna68k.
-rw-r--r-- | sys/arch/luna88k/luna88k/clock.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/sys/arch/luna88k/luna88k/clock.c b/sys/arch/luna88k/luna88k/clock.c index ca93142847d..ec30a13a70e 100644 --- a/sys/arch/luna88k/luna88k/clock.c +++ b/sys/arch/luna88k/luna88k/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.3 2004/12/24 22:50:30 miod Exp $ */ +/* $OpenBSD: clock.c,v 1.4 2004/12/28 12:06:49 miod Exp $ */ /* $NetBSD: clock.c,v 1.2 2000/01/11 10:29:35 nisimura Exp $ */ /* @@ -91,8 +91,6 @@ clockattach(dev, fns, evc) * Resettodr restores the time of day hardware after a time change. */ -int clock_enable; /* XXX to be removed XXX */ - /* * Start the real-time and statistics clocks. Leave stathz 0 since there * are no other timers available. @@ -100,10 +98,11 @@ int clock_enable; /* XXX to be removed XXX */ void cpu_initclocks() { - int s; +#ifdef DIAGNOSTIC if (clockfns == NULL) panic("cpu_initclocks: no clock attached"); +#endif tick = 1000000 / hz; /* number of microseconds between interrupts */ tickfix = 1000000 - (hz * tick); @@ -114,18 +113,6 @@ cpu_initclocks() tickfix >>= (ftp - 1); tickfixinterval = hz >> (ftp - 1); } - /* - * Get the clock started. - */ - s = splhigh(); - /* - * XXX - * I guess it's necessary to program clock source with - * approprivate mode/value. - * XXX - */ - clock_enable = 1; - splx(s); } /* |