callout: Remove a redundant parameter to callout_cc_add()
The passed cpuid is always equal to the one stored in the callout structure. No functional change intended. MFC after: 1 week Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
fb0493d559
commit
aac7c7ac54
@ -593,7 +593,7 @@ callout_lock(struct callout *c)
|
||||
static void
|
||||
callout_cc_add(struct callout *c, struct callout_cpu *cc,
|
||||
sbintime_t sbt, sbintime_t precision, void (*func)(void *),
|
||||
void *arg, int cpu, int flags)
|
||||
void *arg, int flags)
|
||||
{
|
||||
int bucket;
|
||||
|
||||
@ -626,7 +626,7 @@ callout_cc_add(struct callout *c, struct callout_cpu *cc,
|
||||
sbt = c->c_time + c->c_precision;
|
||||
if (sbt < cc->cc_firstevent) {
|
||||
cc->cc_firstevent = sbt;
|
||||
cpu_new_callout(cpu, sbt, c->c_time);
|
||||
cpu_new_callout(c->c_cpu, sbt, c->c_time);
|
||||
}
|
||||
}
|
||||
|
||||
@ -803,7 +803,7 @@ softclock_call_cc(struct callout *c, struct callout_cpu *cc,
|
||||
new_cc = callout_cpu_switch(c, cc, new_cpu);
|
||||
flags = (direct) ? C_DIRECT_EXEC : 0;
|
||||
callout_cc_add(c, new_cc, new_time, new_prec, new_func,
|
||||
new_arg, new_cpu, flags);
|
||||
new_arg, flags);
|
||||
CC_UNLOCK(new_cc);
|
||||
CC_LOCK(cc);
|
||||
#else
|
||||
@ -1062,7 +1062,7 @@ callout_reset_sbt_on(struct callout *c, sbintime_t sbt, sbintime_t prec,
|
||||
}
|
||||
#endif
|
||||
|
||||
callout_cc_add(c, cc, to_sbt, precision, ftn, arg, cpu, flags);
|
||||
callout_cc_add(c, cc, to_sbt, precision, ftn, arg, flags);
|
||||
CTR6(KTR_CALLOUT, "%sscheduled %p func %p arg %p in %d.%08x",
|
||||
cancelled ? "re" : "", c, c->c_func, c->c_arg, (int)(to_sbt >> 32),
|
||||
(u_int)(to_sbt & 0xffffffff));
|
||||
|
Loading…
Reference in New Issue
Block a user