Re: HZ, preferably as small as possible

george anzinger
2002-07-12T18:27:51Z

Roland Dreier wrote:
>
> >>>>> "george" == george anzinger <george@mvista.com> writes:
>
> george> Well, in truth it has nothing to do with interrupts. It
> george> is just that that is the way most systems keep time. The
> george> REAL definition of HZ is in its relationship to jiffies
> george> and seconds.
>
> george> I.e. jiffies * HZ = seconds, by definition.
>
> I'm sure you know the truth, but this isn't quite right. Just to be
> pedantic and make sure the correct definition is out there:
>
> jiffies / HZ = seconds
>
> For example if HZ is 100 then the jiffy counter is incremented 100
> times each second.
>
Of course you are right. Must have been a brain fart :)

--
George Anzinger george@mvista.com
High-res-timers:
http://sourceforge.net/projects/high-res-timers/
Real time sched: http://sourceforge.net/projects/rtsched/