Subject: Re: Clock drift on Miatas
To: None <sommerfeld@orchard.arlington.ma.us>
From: Simon Burge <simonb@netbsd.org>
List: port-alpha
Date: 05/29/2000 09:31:31
Bill Sommerfeld wrote:
> Note that "options NTP" requires that hz have one of a small number of
> possible values, and i've seen at least one Alphaserver 1200's ship
> with SRM configured to boot with hz=1200, which is not one of those
> options..
Does the following work? It looks like this is the only place the hz
matters. If so, maybe we can generalise the shifthz calculation...
Simon.
--
Index: kern_clock.c
===================================================================
RCS file: /cvsroot/syssrc/sys/kern/kern_clock.c,v
retrieving revision 1.55
diff -p -u -r1.55 kern_clock.c
--- kern_clock.c 2000/03/30 09:27:11 1.55
+++ kern_clock.c 2000/05/28 23:17:23
@@ -417,6 +417,9 @@ initclocks()
case 1024:
shifthz = SHIFT_SCALE - 10;
break;
+ case 1200:
+ shifthz = SHIFT_SCALE - 11;
+ break;
default:
panic("weird hz");
}