From: rahnds Date: Sun, 2 Apr 2000 00:14:31 +0000 (+0000) Subject: callout->timeout. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=84d6abd0f8eb0fd3d9ca973aaf2357339c483f80;p=openbsd callout->timeout. Ok, my tree was not fully updated, and it was committed incorrectly. This is version 1.38 checked in again. --- diff --git a/sys/arch/powerpc/powerpc/machdep.c b/sys/arch/powerpc/powerpc/machdep.c index 3831319679c..c7149619569 100644 --- a/sys/arch/powerpc/powerpc/machdep.c +++ b/sys/arch/powerpc/powerpc/machdep.c @@ -1,4 +1,4 @@ -/* $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 $ */ /* @@ -35,6 +35,7 @@ #include #include +#include #include #include #include @@ -43,9 +44,6 @@ #include #include #include -#include -#include -#include #include #include #include @@ -517,12 +515,9 @@ cpu_startup() #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)); @@ -567,7 +562,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