From 6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 11 Mar 1998 15:21:44 +0000 Subject: Timer code rework. Done so far: o Fix interrupt handler to not loose cycles o Warn about lost interrupts. o Fix calibration of the R4000 CPU timer. Still to do: o General cleanup of the timer code o Microsecond timers for the Indy o The calculated values for r4k_offset are still off by ~480 from the theoretical values. That means we're going to loose about 46 s per day. Are the crystals that bad or is there still a bug hidden somewhere? Maybe an option to set r4k_offset to a user supplied value might help? o Handle lost interrupts more gently so we don't loose time. o Handle 100MHz R4000 count / compare bug. --- include/asm-mips/sgint23.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/asm-mips') diff --git a/include/asm-mips/sgint23.h b/include/asm-mips/sgint23.h index 31319f829..2d157f064 100644 --- a/include/asm-mips/sgint23.h +++ b/include/asm-mips/sgint23.h @@ -1,4 +1,4 @@ -/* $Id: sgint23.h,v 1.5 1996/06/12 00:44:01 dm Exp $ +/* $Id: sgint23.h,v 1.2 1998/03/11 11:58:36 ralf Exp $ * sgint23.h: Defines for the SGI INT2 and INT3 chipsets. * * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) @@ -126,7 +126,7 @@ struct sgi_ioc_timers { #define SGINT_TCWORD_CNT2 0x80 /* Select counter two */ #define SGINT_TCWORD_CRBCK 0xc0 /* Readback command */ -#define SGINT_TCSAMP_COUNTER 0x164 +#define SGINT_TCSAMP_COUNTER 10255 struct sgi_int2_regs { struct sgi_ioc_ints ints; -- cgit v1.2.3