Subject: Re: Proposed changes to cc_microset().
To: None <tech-kern@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-kern
Date: 07/08/2004 16:22:10
On Mon, 05 Jul 2004, Frederick Bruckman wrote:
> Please let me draw your attention to the following:
>   ftp://ftp.netbsd.org/pub/NetBSD/misc/fredb/cc_microset.diff
> [...]
> So, the point of the patch, is, to call cc_microset() more frequently,
> to update the base time for cc_microtime(), while actually doing the
> frequency calibration less frequently (1/10 second and 10 seconds,
> respectively).

While you are changing things in this area, it would be nice if you also
added a way for cc_microtime and friends to be informed of deliberate
changes in CPU speed (such as the i386 "Enhanced SpeedStep" stuff in
sys/arch/i386/i386/est.c).

I haven't worked out the details, but I think that it should be possible
to add a function that gets called with both old and new nominal speeds
when the CPU speed is changed, and that frobs the information in struct
cpu_info to DTRT.

--apb (Alan Barrett)