summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-03-16 18:59:21 +0000
committerrwatson <rwatson@FreeBSD.org>2008-03-16 18:59:21 +0000
commite7b290ea3d25b7552b89e1f0f99985a9e6e3654d (patch)
tree9bb9ea83de97df28000861445621a03f8dce46b2 /sys/kern/kern_synch.c
parent52f3c4136e6ac1d0d14b435c2a8931fd53eba758 (diff)
downloadFreeBSD-src-e7b290ea3d25b7552b89e1f0f99985a9e6e3654d.zip
FreeBSD-src-e7b290ea3d25b7552b89e1f0f99985a9e6e3654d.tar.gz
Consistently use ANSI C declarationsfor all functions in kern_synch.c.
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c26
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);
OpenPOWER on IntegriCloud