![rafal](/assets/img/avatar_default.png)
to schedule clock interrupts at a fixed interval, rather scheduling the next one based on the time of the arrival/servicing of the previous clock interrupt. Also, pick up a trick from the sbmips port to convert a division in ip22_clkread to a multiplication, since those are much cheaper -- the details of that are described in Simon's commit (see Message-Id: <20020306073437.1D2A8B004@cvs.netbsd.org>). Thanks to Jason Thorpe and Dominic Sweetman's "See MIPS Run" (where I found mention of this very subject while looking for something totally un- related! 8-) for the clue about the source of the timekeeping problems. For the IP32, where we have no clock-calibration code yet, use the CPU frequency provided by ARCS instead; it beats a hard-coded value! As an added bonus, most of the CPU-clock related stuff is now collected together in cpu_info_store, rather than as a collection of unorganized global variables.
…
…
…
…
…
…
…
…
…
…
Description
No description provided
Languages
C
85.3%
Roff
7.2%
Assembly
3.1%
Shell
1.7%
Makefile
1.2%
Other
0.9%