diff options
Diffstat (limited to 'sys/arch/sparc/sparc/machdep.c')
-rw-r--r-- | sys/arch/sparc/sparc/machdep.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c index 8051d02965f..d063046906f 100644 --- a/sys/arch/sparc/sparc/machdep.c +++ b/sys/arch/sparc/sparc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.47 2000/03/16 22:11:02 art Exp $ */ +/* $OpenBSD: machdep.c,v 1.48 2000/03/23 09:59:56 art Exp $ */ /* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */ /* @@ -58,7 +58,7 @@ #include <sys/conf.h> #include <sys/file.h> #include <sys/clist.h> -#include <sys/callout.h> +#include <sys/timeout.h> #include <sys/malloc.h> #include <sys/mbuf.h> #include <sys/mount.h> @@ -353,12 +353,9 @@ cpu_startup() VM_MBUF_SIZE, FALSE); #endif /* - * Initialize callouts + * Initialize timeouts */ - callfree = callout; - for (i = 1; i < ncallout; i++) - callout[i-1].c_next = &callout[i]; - callout[i-1].c_next = NULL; + timeout_init(); #ifdef DEBUG pmapdebug = opmapdebug; @@ -408,7 +405,7 @@ allocsys(v) #define valloc(name, type, num) \ v = (caddr_t)(((name) = (type *)v) + (num)) - valloc(callout, struct callout, ncallout); + valloc(timeouts, struct timeout, ntimeout); #ifdef SYSVSHM valloc(shmsegs, struct shmid_ds, shminfo.shmmni); #endif |