1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Fixed stale references to hzto() in comments.

This commit is contained in:
Bruce Evans 1998-05-17 20:08:05 +00:00
parent cb87a87c16
commit c8b4782815
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36127
3 changed files with 7 additions and 7 deletions

View File

@ -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 <sys/param.h>
@ -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.

View File

@ -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 <sys/param.h>
@ -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 */

View File

@ -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;