From 45fa2c8a878d196f9e0fcfb561d5f57cbd392254 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Sun, 16 Mar 2008 18:59:21 +0000 Subject: [PATCH] Consistently use ANSI C declarationsfor all functions in kern_synch.c. --- sys/kern/kern_synch.c | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 6914aa440f6f..b4defe929a4c 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -118,11 +118,8 @@ sleepinit(void) * flag the lock is not re-locked before returning. */ int -_sleep(ident, lock, priority, wmesg, timo) - void *ident; - struct lock_object *lock; - int priority, timo; - const char *wmesg; +_sleep(void *ident, struct lock_object *lock, int priority, + const char *wmesg, int timo) { struct thread *td; struct proc *p; @@ -232,11 +229,7 @@ _sleep(ident, lock, priority, wmesg, timo) } int -msleep_spin(ident, mtx, wmesg, timo) - void *ident; - struct mtx *mtx; - const char *wmesg; - int timo; +msleep_spin(void *ident, struct mtx *mtx, const char *wmesg, int timo) { struct thread *td; struct proc *p; @@ -320,9 +313,7 @@ msleep_spin(ident, mtx, wmesg, timo) * implemented using a dummy wait channel. */ int -pause(wmesg, timo) - const char *wmesg; - int timo; +pause(const char *wmesg, int timo) { KASSERT(timo != 0, ("pause: timeout required")); @@ -333,8 +324,7 @@ pause(wmesg, timo) * Make all threads sleeping on the specified identifier runnable. */ void -wakeup(ident) - register void *ident; +wakeup(void *ident) { sleepq_lock(ident); @@ -348,8 +338,7 @@ wakeup(ident) * swapped out. */ void -wakeup_one(ident) - register void *ident; +wakeup_one(void *ident) { sleepq_lock(ident); @@ -525,8 +514,7 @@ lboltcb(void *arg) /* ARGSUSED */ static void -synch_setup(dummy) - void *dummy; +synch_setup(void *dummy) { callout_init(&loadav_callout, CALLOUT_MPSAFE); callout_init(&lbolt_callout, CALLOUT_MPSAFE);