Convert functions to the new-style format.

Submitted by:	Vijay Singh <vijju.singh@gmail.com> via -hackers
This commit is contained in:
Davide Italiano 2014-06-05 03:46:46 +00:00
parent 33d8df4b31
commit e392e44c27

View File

@ -873,10 +873,7 @@ softclock(void *arg)
* identify entries for untimeout. * identify entries for untimeout.
*/ */
struct callout_handle struct callout_handle
timeout(ftn, arg, to_ticks) timeout(timeout_t *ftn, void *arg, int to_ticks)
timeout_t *ftn;
void *arg;
int to_ticks;
{ {
struct callout_cpu *cc; struct callout_cpu *cc;
struct callout *new; struct callout *new;
@ -898,10 +895,7 @@ timeout(ftn, arg, to_ticks)
} }
void void
untimeout(ftn, arg, handle) untimeout(timeout_t *ftn, void *arg, struct callout_handle handle)
timeout_t *ftn;
void *arg;
struct callout_handle handle;
{ {
struct callout_cpu *cc; struct callout_cpu *cc;
@ -1084,9 +1078,7 @@ callout_schedule(struct callout *c, int to_ticks)
} }
int int
_callout_stop_safe(c, safe) _callout_stop_safe(struct callout *c, int safe)
struct callout *c;
int safe;
{ {
struct callout_cpu *cc, *old_cc; struct callout_cpu *cc, *old_cc;
struct lock_class *class; struct lock_class *class;
@ -1258,9 +1250,7 @@ again:
} }
void void
callout_init(c, mpsafe) callout_init(struct callout *c, int mpsafe)
struct callout *c;
int mpsafe;
{ {
bzero(c, sizeof *c); bzero(c, sizeof *c);
if (mpsafe) { if (mpsafe) {
@ -1274,10 +1264,7 @@ callout_init(c, mpsafe)
} }
void void
_callout_init_lock(c, lock, flags) _callout_init_lock(struct callout *c, struct lock_object *lock, int flags)
struct callout *c;
struct lock_object *lock;
int flags;
{ {
bzero(c, sizeof *c); bzero(c, sizeof *c);
c->c_lock = lock; c->c_lock = lock;
@ -1309,8 +1296,7 @@ _callout_init_lock(c, lock, flags)
* 2 days. Your milage may vary. - Ken Key <key@cs.utk.edu> * 2 days. Your milage may vary. - Ken Key <key@cs.utk.edu>
*/ */
void void
adjust_timeout_calltodo(time_change) adjust_timeout_calltodo(struct timeval *time_change)
struct timeval *time_change;
{ {
register struct callout *p; register struct callout *p;
unsigned long delta_ticks; unsigned long delta_ticks;