diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-02 18:10:08 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-02 18:10:08 +0000 |
commit | 13f91bdce445c9a70ccf02ac550d4cc6a06d93fa (patch) | |
tree | 796b9d8c0d9718a4fa7c4543923fa00ef8a2f844 /sys/arch/mac68k | |
parent | 38c5bd91c683e4ff760cbc251bfcc90fa3803c72 (diff) |
Merge enablertclock() in cpu_initclocks(), kill unused disablertclock(), and
remove a wrong comment aboute startrtclock() being invoked twice.
Diffstat (limited to 'sys/arch/mac68k')
-rw-r--r-- | sys/arch/mac68k/include/autoconf.h | 4 | ||||
-rw-r--r-- | sys/arch/mac68k/mac68k/clock.c | 21 |
2 files changed, 3 insertions, 22 deletions
diff --git a/sys/arch/mac68k/include/autoconf.h b/sys/arch/mac68k/include/autoconf.h index ebeb4d8cd15..b9ee1bcd266 100644 --- a/sys/arch/mac68k/include/autoconf.h +++ b/sys/arch/mac68k/include/autoconf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.h,v 1.9 2005/07/23 23:30:55 martin Exp $ */ +/* $OpenBSD: autoconf.h,v 1.10 2006/01/02 18:10:05 miod Exp $ */ /* $NetBSD: autoconf.h,v 1.5 1996/12/17 06:47:40 scottr Exp $ */ /* @@ -54,10 +54,8 @@ int badladdr(register caddr_t addr); /* clock.h */ -void enablertclock(void); void cpu_initclocks(void); void setstatclockrate(int); -void disablertclock(void); u_long clkread(void); void inittodr(time_t); void resettodr(void); diff --git a/sys/arch/mac68k/mac68k/clock.c b/sys/arch/mac68k/mac68k/clock.c index 9971328f047..4787410aaa4 100644 --- a/sys/arch/mac68k/mac68k/clock.c +++ b/sys/arch/mac68k/mac68k/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.18 2004/11/30 01:44:22 martin Exp $ */ +/* $OpenBSD: clock.c,v 1.19 2006/01/02 18:10:07 miod Exp $ */ /* $NetBSD: clock.c,v 1.39 1999/11/05 19:14:56 scottr Exp $ */ /* @@ -114,10 +114,6 @@ int rtclock_intr(void *); void startrtclock() { -/* - * BARF MF startrt clock is called twice in init_main, configure, - * the reason why is doced in configure - */ /* be certain clock interrupts are off */ via_reg(VIA1, vIER) = V1IF_T1; @@ -134,7 +130,7 @@ startrtclock() } void -enablertclock() +cpu_initclocks() { /* clear then enable clock interrupt. */ via_reg(VIA1, vIFR) |= V1IF_T1; @@ -142,24 +138,11 @@ enablertclock() } void -cpu_initclocks() -{ - enablertclock(); -} - -void setstatclockrate(rateinhz) int rateinhz; { } -void -disablertclock() -{ - /* disable clock interrupt */ - via_reg(VIA1, vIER) = V1IF_T1; -} - /* * Returns number of usec since last clock tick/interrupt. * |