diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_clock.c | 19 | ||||
-rw-r--r-- | sys/kern/kern_tc.c | 19 |
2 files changed, 2 insertions, 36 deletions
diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 758addeb1625..587a2dfe350a 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -39,7 +39,7 @@ static volatile int print_tci = 1; * SUCH DAMAGE. * * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 - * $Id: kern_clock.c,v 1.76 1998/07/04 19:29:15 phk Exp $ + * $Id: kern_clock.c,v 1.77 1998/07/11 07:45:39 bde Exp $ */ #include <sys/param.h> @@ -281,23 +281,6 @@ tvtohz(tv) return (ticks); } - -/* - * Compute number of hz until specified time. Used to - * compute third argument to timeout() from an absolute time. - */ -int -hzto(tv) - struct timeval *tv; -{ - struct timeval t2; - - getmicrotime(&t2); - t2.tv_sec = tv->tv_sec - t2.tv_sec; - t2.tv_usec = tv->tv_usec - t2.tv_usec; - return (tvtohz(&t2)); -} - /* * Start profiling on a process. * diff --git a/sys/kern/kern_tc.c b/sys/kern/kern_tc.c index 758addeb1625..587a2dfe350a 100644 --- a/sys/kern/kern_tc.c +++ b/sys/kern/kern_tc.c @@ -39,7 +39,7 @@ static volatile int print_tci = 1; * SUCH DAMAGE. * * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 - * $Id: kern_clock.c,v 1.76 1998/07/04 19:29:15 phk Exp $ + * $Id: kern_clock.c,v 1.77 1998/07/11 07:45:39 bde Exp $ */ #include <sys/param.h> @@ -281,23 +281,6 @@ tvtohz(tv) return (ticks); } - -/* - * Compute number of hz until specified time. Used to - * compute third argument to timeout() from an absolute time. - */ -int -hzto(tv) - struct timeval *tv; -{ - struct timeval t2; - - getmicrotime(&t2); - t2.tv_sec = tv->tv_sec - t2.tv_sec; - t2.tv_usec = tv->tv_usec - t2.tv_usec; - return (tvtohz(&t2)); -} - /* * Start profiling on a process. * |