Subject: Re: Clock drift on Miatas
To: Simon Burge <simonb@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: port-alpha
Date: 05/28/2000 16:57:05
On Mon, May 29, 2000 at 09:31:31AM +1000, Simon Burge wrote:

 > Does the following work?  It looks like this is the only place the hz
 > matters.  If so, maybe we can generalise the shifthz calculation...

I can try it later, but if you want to just generalize it now, that'd
be pretty cool.

 > 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");
 >  	}
 > 

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>