Re: [patch] Re: alpha - generic_init_pit - why using RTC for calibration?

Ivan Kokshaysky
2001-07-05T09:43:48Z

On Thu, Jul 05, 2001 at 11:14:19AM +0400, Oleg I. Vdovikin wrote:
> Richard, thanks. But please use calibrate_cc version which I've submited
> as a patch - it gives more accuracy with maximum latch we can ever use and

With both variants even on a 166MHz CPU you'll get above 1e-7 precision,
which is way above accuracy of any crystal oscillator.

> has cc's type changed to 'unsigned int' to prevent problems when rpcc
> overflows.

The only difference is that you'll have extra 'zap' instruction converting
'unsigned int' to 'unsigned long'.

Ivan.