Subject: Re: More on MI kern_microtime.c - 64-bit arith & MIPS
To: Simon Burge <simonb@wasabisystems.com>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 05/31/2003 19:41:39
On Sun, Jun 01, 2003 at 02:33:26AM +1000, Simon Burge wrote:
>  1- Have a way of overriding the 64-bit integer currently used
>     (MICROTIME_CALC_TYPE or something less ugly).

Sounds good.

>  2- Have a way of overriding the
> 	(usec * ci->ci_cc_ms_delta) / ci->ci_cc_denom
>     expression.

Would it be enough to change the ci->ci_cc_denom into MICROTIME_CC_DENOM(ci)
or  something and rely on the compiler to get it right if the
MICROTIME_CC_DENOM macro returns a compile time constant (and ignores the
cpu_info argument)?

Martin