diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2001-03-24 10:07:23 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2001-03-24 10:07:23 +0000 |
commit | 6de216085ab8baff396ad6b8f06f42f2b1b48f84 (patch) | |
tree | b6aafde7cc67d626e34bfbff22bebdea07ee3210 /sys/arch/sparc/dev/xd.c | |
parent | b4abc688700e5c5a9842fa842a03a43986a37ed6 (diff) |
Convert to new timeout API. art@ ok.
Diffstat (limited to 'sys/arch/sparc/dev/xd.c')
-rw-r--r-- | sys/arch/sparc/dev/xd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/xd.c b/sys/arch/sparc/dev/xd.c index 0e3f99c1629..4fdfda47c24 100644 --- a/sys/arch/sparc/dev/xd.c +++ b/sys/arch/sparc/dev/xd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xd.c,v 1.17 2001/02/22 22:11:46 art Exp $ */ +/* $OpenBSD: xd.c,v 1.18 2001/03/24 10:07:20 ho Exp $ */ /* $NetBSD: xd.c,v 1.37 1997/07/29 09:58:16 fair Exp $ */ /* @@ -74,6 +74,7 @@ #include <sys/syslog.h> #include <sys/dkbad.h> #include <sys/conf.h> +#include <sys/timeout.h> #include <vm/vm.h> #include <vm/vm_kern.h> @@ -509,7 +510,8 @@ xdcattach(parent, self, aux) bootpath_store(1, NULL); /* start the watchdog clock */ - timeout(xdc_tick, xdc, XDC_TICKCNT); + timeout_set(&xdc->xdc_tick_tmo, xdc_tick, xdc); + timeout_add(&xdc->xdc_tick_tmo, XDC_TICKCNT); } @@ -2156,7 +2158,7 @@ xdc_tick(arg) /* until next time */ - timeout(xdc_tick, xdcsc, XDC_TICKCNT); + timeout_add(&xdcsc->xdc_tick_tmo, XDC_TICKCNT); } /* |