- Convert two timeout users to the new callout_reset_curcpu() api.
Sponsored by: Nokia
This commit is contained in:
parent
8d809d5061
commit
e8245292a7
@ -454,7 +454,7 @@ filt_timerexpire(void *knx)
|
||||
|
||||
if ((kn->kn_flags & EV_ONESHOT) != EV_ONESHOT) {
|
||||
calloutp = (struct callout *)kn->kn_hook;
|
||||
callout_reset(calloutp, timertoticks(kn->kn_sdata),
|
||||
callout_reset_curcpu(calloutp, timertoticks(kn->kn_sdata),
|
||||
filt_timerexpire, kn);
|
||||
}
|
||||
}
|
||||
@ -481,8 +481,8 @@ filt_timerattach(struct knote *kn)
|
||||
M_KQUEUE, M_WAITOK);
|
||||
callout_init(calloutp, CALLOUT_MPSAFE);
|
||||
kn->kn_hook = calloutp;
|
||||
callout_reset(calloutp, timertoticks(kn->kn_sdata), filt_timerexpire,
|
||||
kn);
|
||||
callout_reset_curcpu(calloutp, timertoticks(kn->kn_sdata),
|
||||
filt_timerexpire, kn);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -361,7 +361,7 @@ sleepq_set_timeout(void *wchan, int timo)
|
||||
MPASS(TD_ON_SLEEPQ(td));
|
||||
MPASS(td->td_sleepqueue == NULL);
|
||||
MPASS(wchan != NULL);
|
||||
callout_reset(&td->td_slpcallout, timo, sleepq_timeout, td);
|
||||
callout_reset_curcpu(&td->td_slpcallout, timo, sleepq_timeout, td);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user