- Convert two timeout users to the new callout_reset_curcpu() api.

Sponsored by:	Nokia
This commit is contained in:
Jeff Roberson 2008-04-02 11:21:42 +00:00
parent 8d809d5061
commit e8245292a7
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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);
}
/*