From 2b12ac1357fd028b3b73e51ab795264f4b04fd4a Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 16 Jul 2003 18:54:29 +0000 Subject: [PATCH] Delete CLOCK_TICK_RATE, CLOCK_TICK_FACTOR and FINETUNE. These numbers reflect values of the i8259 timer hardware from legacy PC hardware and better not be used by anything. --- include/asm-mips/timex.h | 10 +--------- include/asm-mips64/timex.h | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/include/asm-mips/timex.h b/include/asm-mips/timex.h index 18254aa2971..3369094f74e 100644 --- a/include/asm-mips/timex.h +++ b/include/asm-mips/timex.h @@ -3,21 +3,13 @@ * License. See the file "COPYING" in the main directory of this archive * for more details. * - * Copyright (C) 1998, 1999 by Ralf Baechle - * - * FIXME: For some of the supported machines this is dead wrong. + * Copyright (C) 1998, 1999, 2003 by Ralf Baechle */ #ifndef _ASM_TIMEX_H #define _ASM_TIMEX_H #include -#define CLOCK_TICK_RATE 1193182 /* Underlying HZ */ -#define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */ -#define FINETUNE ((((((long)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \ - (1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \ - << (SHIFT_SCALE-SHIFT_HZ)) / HZ) - /* * Standard way to access the cycle counter. * Currently only used on SMP for scheduling. diff --git a/include/asm-mips64/timex.h b/include/asm-mips64/timex.h index 18254aa2971..3369094f74e 100644 --- a/include/asm-mips64/timex.h +++ b/include/asm-mips64/timex.h @@ -3,21 +3,13 @@ * License. See the file "COPYING" in the main directory of this archive * for more details. * - * Copyright (C) 1998, 1999 by Ralf Baechle - * - * FIXME: For some of the supported machines this is dead wrong. + * Copyright (C) 1998, 1999, 2003 by Ralf Baechle */ #ifndef _ASM_TIMEX_H #define _ASM_TIMEX_H #include -#define CLOCK_TICK_RATE 1193182 /* Underlying HZ */ -#define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */ -#define FINETUNE ((((((long)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \ - (1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \ - << (SHIFT_SCALE-SHIFT_HZ)) / HZ) - /* * Standard way to access the cycle counter. * Currently only used on SMP for scheduling. -- 2.11.4.GIT