summaryrefslogtreecommitdiff
path: root/sys/kern/kern_timeout.c
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2000-11-25 03:34:49 +0000
committerJake Burkholder <jake@FreeBSD.org>2000-11-25 03:34:49 +0000
commit249849e0b9c06deecaaf74a9d971b37cc85dc86a (patch)
tree80ff9b7253af0521a5117ab9554022eb840be9e5 /sys/kern/kern_timeout.c
parent3f964411b5d857bda379d41e2a6ac68a69a31d94 (diff)
Notes
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r--sys/kern/kern_timeout.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c
index 57be76224e8a..72b5302fd32c 100644
--- a/sys/kern/kern_timeout.c
+++ b/sys/kern/kern_timeout.c
@@ -242,11 +242,12 @@ callout_handle_init(struct callout_handle *handle)
* callout_deactivate() - marks the callout as having been serviced
*/
void
-callout_reset(c, to_ticks, ftn, arg)
+_callout_reset(c, to_ticks, ftn, arg, flags)
struct callout *c;
int to_ticks;
void (*ftn) __P((void *));
void *arg;
+ int flags;
{
int s;
@@ -264,7 +265,8 @@ callout_reset(c, to_ticks, ftn, arg)
to_ticks = 1;
c->c_arg = arg;
- c->c_flags |= (CALLOUT_ACTIVE | CALLOUT_PENDING);
+ c->c_flags |= (CALLOUT_ACTIVE | CALLOUT_PENDING |
+ (flags & CALLOUT_MPSAFE));
c->c_func = ftn;
c->c_time = ticks + to_ticks;
TAILQ_INSERT_TAIL(&callwheel[c->c_time & callwheelmask],