diff options
author | gibbs <gibbs@FreeBSD.org> | 1997-09-24 16:39:27 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 1997-09-24 16:39:27 +0000 |
commit | 3e5f626dd16279ae576e035cc086cb2caa07244d (patch) | |
tree | d78f74611e88a1535c53048ca4fe52aaf364ded1 /sys/sys/callout.h | |
parent | 5cb378e508b90d253abbec44b10754e656f783dd (diff) | |
download | FreeBSD-src-3e5f626dd16279ae576e035cc086cb2caa07244d.zip FreeBSD-src-3e5f626dd16279ae576e035cc086cb2caa07244d.tar.gz |
Store an absolute tick value in callout entries so that a subtraction on
hash chain traversal isn't needed. This also allows untimeout to recompute
the hash to find the bucket that the entry to remove is stored in so
that each callout entry no longer needs to store that information.
Reviewed by: Nate Williams <nate@mt.sri.com>
Diffstat (limited to 'sys/sys/callout.h')
-rw-r--r-- | sys/sys/callout.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/sys/callout.h b/sys/sys/callout.h index e44f0ab..562cb46 100644 --- a/sys/sys/callout.h +++ b/sys/sys/callout.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)callout.h 8.2 (Berkeley) 1/21/94 - * $Id: callout.h,v 1.7 1997/09/07 05:26:57 bde Exp $ + * $Id: callout.h,v 1.8 1997/09/21 22:08:59 gibbs Exp $ */ #ifndef _SYS_CALLOUT_H_ @@ -52,7 +52,6 @@ struct callout { SLIST_ENTRY(callout) sle; TAILQ_ENTRY(callout) tqe; } c_links; - struct callout_tailq *c_bucket; void *c_arg; /* function argument */ void (*c_func) __P((void *)); /* function to call */ int c_time; /* ticks to the event */ |