diff options
-rw-r--r-- | sys/kern/kern_event.c | 6 | ||||
-rw-r--r-- | sys/kern/subr_sleepqueue.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c index cfdb9b1..d17a20d 100644 --- a/sys/kern/kern_event.c +++ b/sys/kern/kern_event.c @@ -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); } diff --git a/sys/kern/subr_sleepqueue.c b/sys/kern/subr_sleepqueue.c index bc3f1d8..9edd56e 100644 --- a/sys/kern/subr_sleepqueue.c +++ b/sys/kern/subr_sleepqueue.c @@ -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); } /* |