summaryrefslogtreecommitdiffstats
path: root/sys/sys/callout.h
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2013-03-08 10:14:58 +0000
committerandre <andre@FreeBSD.org>2013-03-08 10:14:58 +0000
commit7f0cc3ba06376c70d7259b9d2b80a8ad5d4583be (patch)
tree3b153971c209175c11aa60030eb1581e42e42d1e /sys/sys/callout.h
parentac59206acfdd9f611aea30d00816ffca9f8011b2 (diff)
downloadFreeBSD-src-7f0cc3ba06376c70d7259b9d2b80a8ad5d4583be.zip
FreeBSD-src-7f0cc3ba06376c70d7259b9d2b80a8ad5d4583be.tar.gz
Move the auto-sizing of the callout array from init_param2() to
kern_timeout_callwheel_alloc() where it is actually used. This is a mechanical move and no tuning parameters are changed. The pre-allocated callout array is only used for legacy timeout(9) calls and is only allocated and active on cpu0. Eventually all remaining users of timeout(9) should switch to the callout_* API. Reviewed by: davide
Diffstat (limited to 'sys/sys/callout.h')
-rw-r--r--sys/sys/callout.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/sys/callout.h b/sys/sys/callout.h
index 7a4dec9..9e3eb90 100644
--- a/sys/sys/callout.h
+++ b/sys/sys/callout.h
@@ -63,8 +63,6 @@ struct callout_handle {
};
#ifdef _KERNEL
-extern int ncallout;
-
#define callout_active(c) ((c)->c_flags & CALLOUT_ACTIVE)
#define callout_deactivate(c) ((c)->c_flags &= ~CALLOUT_ACTIVE)
#define callout_drain(c) _callout_stop_safe(c, 1)
OpenPOWER on IntegriCloud