From 185852a8c40e708e803d43962da2535c6dd0e8dc Mon Sep 17 00:00:00 2001 From: rahnds Date: Sat, 1 Apr 2000 15:30:00 +0000 Subject: [PATCH] timeout -> callout. --- sys/arch/powerpc/powerpc/machdep.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/sys/arch/powerpc/powerpc/machdep.c b/sys/arch/powerpc/powerpc/machdep.c index 5462ef5843b..3831319679c 100644 --- a/sys/arch/powerpc/powerpc/machdep.c +++ b/sys/arch/powerpc/powerpc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.38 2000/03/31 05:18:46 rahnds Exp $ */ +/* $OpenBSD: machdep.c,v 1.39 2000/04/01 15:30:00 rahnds Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -35,7 +35,6 @@ #include #include -#include #include #include #include @@ -44,6 +43,9 @@ #include #include #include +#include +#include +#include #include #include #include @@ -515,9 +517,12 @@ cpu_startup() #endif /* - * Initialize timeouts. + * Initialize callouts */ - timeout_init(); + callfree = callout; + for (i = 1; i < ncallout; i++) { + callout[i-1].c_next = &callout[i]; + } #ifdef UVM printf("avail mem = %d\n", ptoa(uvmexp.free)); @@ -562,7 +567,7 @@ allocsys(v) #define valloc(name, type, num) \ v = (caddr_t)(((name) = (type *)v) + (num)) - valloc(timeouts, struct timeout, ntimeout); + valloc(callout, struct callout, ncallout); #ifdef SYSVSHM valloc(shmsegs, struct shmid_ds, shminfo.shmmni); #endif -- 2.20.1