-/* $OpenBSD: machdep.c,v 1.39 2000/04/01 15:30:00 rahnds Exp $ */
+/* $OpenBSD: machdep.c,v 1.40 2000/04/02 00:14:31 rahnds Exp $ */
/* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */
/*
#include <sys/param.h>
#include <sys/buf.h>
+#include <sys/timeout.h>
#include <sys/exec.h>
#include <sys/malloc.h>
#include <sys/map.h>
#include <sys/msgbuf.h>
#include <sys/proc.h>
#include <sys/reboot.h>
-#include <sys/conf.h>
-#include <sys/file.h>
-#include <sys/callout.h>
#include <sys/syscallargs.h>
#include <sys/syslog.h>
#include <sys/extent.h>
#endif
/*
- * Initialize callouts
+ * Initialize timeouts.
*/
- callfree = callout;
- for (i = 1; i < ncallout; i++) {
- callout[i-1].c_next = &callout[i];
- }
+ timeout_init();
#ifdef UVM
printf("avail mem = %d\n", ptoa(uvmexp.free));
#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