From 3e5f626dd16279ae576e035cc086cb2caa07244d Mon Sep 17 00:00:00 2001 From: gibbs Date: Wed, 24 Sep 1997 16:39:27 +0000 Subject: 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 --- sys/sys/callout.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/sys/callout.h') 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 */ -- cgit v1.1