linux-mips
[Top] [All Lists]

Re: calibrating MIPS counter frequency

To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Subject: Re: calibrating MIPS counter frequency
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Fri, 30 Nov 2001 02:59:02 +1100
Cc: Jun Sun <jsun@mvista.com>, linux-mips@oss.sgi.com
In-reply-to: <Pine.GSO.3.96.1011129161541.14485G-100000@delta.ds2.pg.gda.pl>; from macro@ds2.pg.gda.pl on Thu, Nov 29, 2001 at 04:21:46PM +0100
References: <20011130020240.F638@dea.linux-mips.net> <Pine.GSO.3.96.1011129161541.14485G-100000@delta.ds2.pg.gda.pl>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
On Thu, Nov 29, 2001 at 04:21:46PM +0100, Maciej W. Rozycki wrote:

> > Better stick with the calibration procedure.  The crystal oscilators used
> > in most computer systems don't provide the high accuracy of frequency
> > that is required to keep the clock accurately over long time.  An RTC
> > chip which you'd probably use as reference clock is better at that so
> > should be used as the ultimate reference time in the kernel.
> 
>  On the contrary, the DECstation's undocumented I/O ASIC FCR (free running
> counter) driven by the TURBOchannel bus clock is said to be much more
> accurate than the DS1287 used there.  And it's David L. Mills who says so,
> thus we may safely assume it's true. :-)

Whooa, Master Secundus Minutius Hora himself ;-)

Actually the accuracy of crystal oscillators may differ wildly depending
on the use in a system and environmental conditions.  In case of the
SGI Indy the DS1387 RTC (which is rated at +/- 25ppm ~= 1 minute / month) is
actually more accurate.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>