Date: Mon, 5 Jun 1995 11:35:04 -0500 From: Jim Lowe <james@miller.cs.uwm.edu> To: bde@zeta.org.au, freebsd-hackers@FreeBSD.ORG Subject: Re: Interval timer/System clock Message-ID: <199506051635.LAA26598@miller.cs.uwm.edu>
next in thread | raw e-mail | index | archive | help
> I "fixed" hzto() by adding 1 to allow for the current partial clock tick. I looked at the code this morning and I am a little curious as to why this was changed. There are 3 places in the kern directory where hzto() is called. Two places are for the real time timers and the other is for the select system call. If I subtract 1 from hzto() in these 3 places -- the timing seems correct. I am curious why the 1 tick was added to hzto()? I can subtract one from the hzto in kern_time.c and sys_generic.c but wouldn't it make more sense to have hzto() return 1 less inorder to get the correct hz values for time? Or am I missing something that is real obvious? -Jim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199506051635.LAA26598>