From c8b4782815569caf8b3676d70e228da80c3e953d Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sun, 17 May 1998 20:08:05 +0000 Subject: [PATCH] Fixed stale references to hzto() in comments. --- sys/kern/kern_time.c | 4 ++-- sys/kern/kern_timeout.c | 4 ++-- sys/kern/tty.c | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index a4be4d812105..7e6a659df4d5 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_time.c 8.1 (Berkeley) 6/10/93 - * $Id: kern_time.c,v 1.54 1998/05/14 11:31:08 peter Exp $ + * $Id: kern_time.c,v 1.55 1998/05/17 11:52:48 phk Exp $ */ #include @@ -504,7 +504,7 @@ setitimer(p, uap) * Else compute next time timer should go off which is > current time. * This is where delay in processing this timeout causes multiple * SIGALRM calls to be compressed into one. - * hzto() always adds 1 to allow for the time until the next clock + * tvtohz() always adds 1 to allow for the time until the next clock * interrupt being strictly less than 1 clock tick, but we don't want * that here since we want to appear to be in sync with the clock * interrupt even when we're delayed. diff --git a/sys/kern/kern_timeout.c b/sys/kern/kern_timeout.c index 0c3dacefb7e2..278fcce2097f 100644 --- a/sys/kern/kern_timeout.c +++ b/sys/kern/kern_timeout.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_clock.c 8.5 (Berkeley) 1/21/94 - * $Id: kern_timeout.c,v 1.53 1998/02/15 14:15:21 phk Exp $ + * $Id: kern_timeout.c,v 1.54 1998/02/25 06:13:32 bde Exp $ */ #include @@ -244,7 +244,7 @@ adjust_timeout_calltodo(time_change) /* * How many ticks were we asleep? - * (stolen from hzto()). + * (stolen from tvtohz()). */ /* Don't do anything */ diff --git a/sys/kern/tty.c b/sys/kern/tty.c index fd57c2208820..56fc183136a0 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -38,7 +38,7 @@ static volatile int ttyverbose = 0; * SUCH DAMAGE. * * @(#)tty.c 8.8 (Berkeley) 1/21/94 - * $Id: tty.c,v 1.101 1998/03/07 15:36:21 bde Exp $ + * $Id: tty.c,v 1.102 1998/03/30 09:50:54 phk Exp $ */ /*- @@ -1539,9 +1539,9 @@ ttread(tp, uio, flag) * of the target, so we round up. * The formula is ceiling(slp * hz/1000000). * 32-bit arithmetic is enough for hz < 169. - * XXX see hzto() for how to avoid overflow if hz + * XXX see tvtohz() for how to avoid overflow if hz * is large (divide by `tick' and/or arrange to - * use hzto() if hz is large). + * use tvtohz() if hz is large). */ slp = (long) (((u_long)slp * hz) + 999999) / 1000000; goto sleep;