Subject: None
To: Toru Nishimura <nisimura@is.aist-nara.ac.jp>
From: Jonathan Stone <jonathan@DSG.Stanford.EDU>
List: port-pmax
Date: 10/19/1997 20:33:49
Toru Nishimura <nisimura@is.aist-nara.ac.jp> writes:

>   [ Simon Burge points DELAY macro should be adjusted by CPU speed ]

>> As I think I mentioned elsewhere (I think I pr'd it), the DELAY(2) is
>> too small for a R4000 - I can't remember if this is fixed (Jonathan, did
>> you bump cpuspeed for the r4k's?), but if it isn't it should be for 1.3.

cpuspeed now gets calibrated by measuring how many loops get executed
between interrupts from the RTC.

>I think DELAY() now does CPU speed dependent job.  See
>mips/mips/mips_mcclock.c, which calibrates how fast the cpu runs.
>Nice work, Jonathan, it's what I wanted to see.  sysctl(8) can show CPU
>speed in 'hw.model' inquery.

Yes, it does. That fixed an occasional problem I saw on a 5000/150;
Michael Hitch says that it fixed similar symptoms on a 5000/50.
I beleive Simon is using 5000/260s. Sadly, I don't have a 5000/260 to test :).