From 53ba6ce9c004844e65b484983d8e492d8a13bd7b Mon Sep 17 00:00:00 2001 From: Martin Schwidefsky Date: Mon, 18 Oct 2004 18:13:35 -0700 Subject: [PATCH] [PATCH] cleanup: remove unused definitions from timex.h The CLOCK_TICK_FACTOR and FINETUNE defines from are not used anywhere. Kill them. Signed-off-by: Martin Schwidefsky Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/asm-arm/arch-lh7a40x/timex.h | 1 - include/asm-arm/arch-sa1100/timex.h | 1 - include/asm-h8300/timex.h | 4 ---- include/asm-i386/timex.h | 4 ---- include/asm-m68k/timex.h | 4 ---- include/asm-ppc/timex.h | 4 ---- include/asm-ppc64/timex.h | 4 ---- include/asm-s390/timex.h | 4 ---- include/asm-sh/timex.h | 4 ---- include/asm-sparc/timex.h | 4 ---- include/asm-sparc64/timex.h | 4 ---- include/asm-v850/timex.h | 4 ---- include/asm-x86_64/timex.h | 4 ---- 13 files changed, 46 deletions(-) diff --git a/include/asm-arm/arch-lh7a40x/timex.h b/include/asm-arm/arch-lh7a40x/timex.h index e9c296ec59616..fa726b6708291 100644 --- a/include/asm-arm/arch-lh7a40x/timex.h +++ b/include/asm-arm/arch-lh7a40x/timex.h @@ -14,5 +14,4 @@ /* #define CLOCK_TICK_RATE 3686400 -#define CLOCK_TICK_FACTOR 80 */ diff --git a/include/asm-arm/arch-sa1100/timex.h b/include/asm-arm/arch-sa1100/timex.h index 82aa1a3c16a01..837be9b797dd0 100644 --- a/include/asm-arm/arch-sa1100/timex.h +++ b/include/asm-arm/arch-sa1100/timex.h @@ -10,4 +10,3 @@ * SA1100 timer */ #define CLOCK_TICK_RATE 3686400 -#define CLOCK_TICK_FACTOR 80 diff --git a/include/asm-h8300/timex.h b/include/asm-h8300/timex.h index 7a61dee5dccc3..20413145fabb9 100644 --- a/include/asm-h8300/timex.h +++ b/include/asm-h8300/timex.h @@ -7,10 +7,6 @@ #define _ASM_H8300_TIMEX_H #define CLOCK_TICK_RATE CONFIG_CPU_CLOCK*1000/8192 /* Timer input freq. */ -#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) typedef unsigned long cycles_t; extern short h8300_timer_count; diff --git a/include/asm-i386/timex.h b/include/asm-i386/timex.h index 6d5d757b1b40a..ef53334ac043a 100644 --- a/include/asm-i386/timex.h +++ b/include/asm-i386/timex.h @@ -15,10 +15,6 @@ # define CLOCK_TICK_RATE 1193182 /* Underlying HZ */ #endif -#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 on i586+ CPUs. diff --git a/include/asm-m68k/timex.h b/include/asm-m68k/timex.h index 7a05262f29a1c..b87f2f278f673 100644 --- a/include/asm-m68k/timex.h +++ b/include/asm-m68k/timex.h @@ -7,10 +7,6 @@ #define _ASMm68k_TIMEX_H #define CLOCK_TICK_RATE 1193180 /* 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) typedef unsigned long cycles_t; diff --git a/include/asm-ppc/timex.h b/include/asm-ppc/timex.h index 65192b74ef060..b9bffff66edd7 100644 --- a/include/asm-ppc/timex.h +++ b/include/asm-ppc/timex.h @@ -11,10 +11,6 @@ #include #define CLOCK_TICK_RATE 1193180 /* 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) typedef unsigned long cycles_t; diff --git a/include/asm-ppc64/timex.h b/include/asm-ppc64/timex.h index cb7149a8f5c6c..8db4da4064cde 100644 --- a/include/asm-ppc64/timex.h +++ b/include/asm-ppc64/timex.h @@ -12,10 +12,6 @@ #define _ASMPPC64_TIMEX_H #define CLOCK_TICK_RATE 1193180 /* 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) typedef unsigned long cycles_t; diff --git a/include/asm-s390/timex.h b/include/asm-s390/timex.h index 226acd000639d..c878d6ac97ab8 100644 --- a/include/asm-s390/timex.h +++ b/include/asm-s390/timex.h @@ -12,10 +12,6 @@ #define _ASM_S390_TIMEX_H #define CLOCK_TICK_RATE 1193180 /* 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) typedef unsigned long long cycles_t; diff --git a/include/asm-sh/timex.h b/include/asm-sh/timex.h index 96a33d1964cb9..bd2f43571fca1 100644 --- a/include/asm-sh/timex.h +++ b/include/asm-sh/timex.h @@ -7,10 +7,6 @@ #define __ASM_SH_TIMEX_H #define CLOCK_TICK_RATE (CONFIG_SH_PCLK_FREQ / 4) /* 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) typedef unsigned long long cycles_t; diff --git a/include/asm-sparc/timex.h b/include/asm-sparc/timex.h index 4b628788b86bf..870a3b39c8f51 100644 --- a/include/asm-sparc/timex.h +++ b/include/asm-sparc/timex.h @@ -7,10 +7,6 @@ #define _ASMsparc_TIMEX_H #define CLOCK_TICK_RATE 1193180 /* 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) /* XXX Maybe do something better at some point... -DaveM */ typedef unsigned long cycles_t; diff --git a/include/asm-sparc64/timex.h b/include/asm-sparc64/timex.h index 904100a07a7d7..9e8d4175bcb25 100644 --- a/include/asm-sparc64/timex.h +++ b/include/asm-sparc64/timex.h @@ -9,10 +9,6 @@ #include #define CLOCK_TICK_RATE 1193180 /* 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) /* Getting on the cycle counter on sparc64. */ typedef unsigned long cycles_t; diff --git a/include/asm-v850/timex.h b/include/asm-v850/timex.h index 729e2789fcf34..6279e5a0ee8e2 100644 --- a/include/asm-v850/timex.h +++ b/include/asm-v850/timex.h @@ -7,10 +7,6 @@ #define __V850_TIMEX_H__ #define CLOCK_TICK_RATE 1193180 /* 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) typedef unsigned long cycles_t; diff --git a/include/asm-x86_64/timex.h b/include/asm-x86_64/timex.h index 895294a7cd3f3..5eb8ff3d6bbdd 100644 --- a/include/asm-x86_64/timex.h +++ b/include/asm-x86_64/timex.h @@ -13,10 +13,6 @@ #include #define CLOCK_TICK_RATE PIT_TICK_RATE /* Underlying HZ */ -#define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */ -#define FINETUNE ((((((int)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \ - (1000000/CLOCK_TICK_FACTOR) / (CLOCK_TICK_RATE/CLOCK_TICK_FACTOR)) \ - << (SHIFT_SCALE-SHIFT_HZ)) / HZ) typedef unsigned long long cycles_t; -- 2.53.0