Subject: Re: port-i386/1835: Kernel compile dies in machdep.c if HZ is defined (i386)
To: None <netbsd-bugs@NetBSD.ORG>
From: Christoph Badura <bad@flatlin.ka.sub.org>
List: netbsd-bugs
Date: 12/18/1995 22:51:02
> > That's what the variables tickfix and tickfixcnt in kern_clock.c deal
> > with.
> 
> "i'm not so sure about that."
> 
> tickfix can deal with cases where the number of milliseconds in a tick
> isn't integral, but the number of microseconds is (or something like
> that).  That's what it was intended for.
> 
> If the clock doesn't divide a second into an integral number of
> microseconds (or whatever), it won't work...

"What's the difference?"

The comment in kern_clock.c says it's for the latter case.

I still maintain that tickfix should be initialised in a
machine-independent subroutine.  Though, you could pass it the
machine's real clock frequency from cpu_initclocks.

-- 
Christoph Badura	bad@flatlin.ka.sub.org		Wk +49 228 97024-36

Es genuegt nicht, keine Gedanken zu haben;
man muss auch unfaehig sein, sie auszudruecken.  - Karl Kraus