diff options
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r-- | sys/kern/kern_synch.c | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 6914aa4..b4defe9 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); |