diff options
Diffstat (limited to 'sys/kern/kern_timeout.c')
-rw-r--r-- | sys/kern/kern_timeout.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index a8813c1..4f88bab 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -259,7 +259,7 @@ callout_reset(c, to_ticks, ftn, arg) mtx_unlock_spin(&callout_lock); } -void +int callout_stop(c) struct callout *c; { @@ -271,7 +271,7 @@ callout_stop(c) if (!(c->c_flags & CALLOUT_PENDING)) { c->c_flags &= ~CALLOUT_ACTIVE; mtx_unlock_spin(&callout_lock); - return; + return (0); } c->c_flags &= ~(CALLOUT_ACTIVE | CALLOUT_PENDING); @@ -285,6 +285,7 @@ callout_stop(c) SLIST_INSERT_HEAD(&callfree, c, c_links.sle); } mtx_unlock_spin(&callout_lock); + return (1); } void |