New API for timeouts. Replaces the old timeout()/untimeout() API and
authorart <art@openbsd.org>
Thu, 23 Mar 2000 09:59:52 +0000 (09:59 +0000)
committerart <art@openbsd.org>
Thu, 23 Mar 2000 09:59:52 +0000 (09:59 +0000)
commitd66eba84aa3b18595c10a5b245b64a9ffcd3bc86
treeb518a1a8fb625d798b828fb514c16c1f9fba757c
parent10faadc4e72fab30fc673a3f10d91b9bdbcef3b6
New API for timeouts. Replaces the old timeout()/untimeout() API and
makes it the callers responsibility to allocate resources for the
timeouts.

This is a KISS implementation and does _not_ solve the problems of slow
handling of a large number of pending timeouts (this will be solved in
future work) (although hardclock is now guarateed to take constant time
for handling of timeouts).

Old timeout() and untimeout() are implemented as wrappers around the new
API and kept for compatibility. They will be removed as soon as all
subsystems are converted to use the new API.
25 files changed:
sys/arch/alpha/alpha/machdep.c
sys/arch/amiga/amiga/machdep.c
sys/arch/arc/arc/machdep.c
sys/arch/arm32/arm32/machdep.c
sys/arch/atari/atari/machdep.c
sys/arch/hp300/hp300/machdep.c
sys/arch/hppa/hppa/machdep.c
sys/arch/i386/i386/machdep.c
sys/arch/kbus/kbus/machdep.c
sys/arch/mac68k/mac68k/machdep.c
sys/arch/mvme68k/mvme68k/machdep.c
sys/arch/mvme88k/mvme88k/machdep.c
sys/arch/pc532/pc532/machdep.c
sys/arch/pmax/pmax/machdep.c
sys/arch/powerpc/powerpc/machdep.c
sys/arch/sparc/sparc/machdep.c
sys/arch/sun3/sun3/machdep.c
sys/arch/vax/vax/machdep.c
sys/arch/wgrisc/wgrisc/machdep.c
sys/conf/files
sys/conf/param.c
sys/kern/kern_clock.c
sys/kern/kern_timeout.c [new file with mode: 0644]
sys/sys/callout.h [deleted file]
sys/sys/timeout.h [new file with mode: 0644]