Consistently use ANSI C declarationsfor all functions in kern_synch.c.

This commit is contained in:
Robert Watson 2008-03-16 18:59:21 +00:00
parent e056770745
commit 45fa2c8a87
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177272

View File

@ -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);