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

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Thu Jul 05 2001 - 03:47:38 EST


Oleg,

How is this relative to HZ, when you remove all references to HZ?

> -#define CALIBRATE_LATCH (52 * LATCH)
> -#define CALIBRATE_TIME (52 * 1000020 / HZ)
> +#define CALIBRATE_LATCH 0xffff
[...]
> + /* and the final result in HZ */
> + return ((unsigned long)cc * CLOCK_TICK_RATE) / CALIBRATE_LATCH;

and in asm-alpha/timex.h,
> #define CLOCK_TICK_RATE 1193180 /* Underlying HZ */

-- 
Jeff Garzik      | Thalidomide, eh? 
Building 1024    | So you're saying the eggplant has an accomplice?
MandrakeSoft     |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 21:00:15 EST