From: Martin Schwidefsky <schwidefsky@de.ibm.com>
To: linux-kernel@vger.kernel.org, linux-390@vm.marist.edu
Cc: arjanv@redhat.com, tim.bird@am.sony.com, mulix@mulix.org,
alan@redhat.com, crisw@osdl.org, jan.glauber@de.ibm.com
Subject: [PATCH] cputime (2/6): remove unused definitions from timex.h.
Date: Thu, 5 Aug 2004 20:04:12 +0200 [thread overview]
Message-ID: <20040805180412.GC9240@mschwid3.boeblingen.de.ibm.com> (raw)
[PATCH] cputime (2/6): remove unused definitions from timex.h.
From: Martin Schwidefsky <schwidefsky@de.ibm.com>
The CLOCK_TICK_FACTOR and FINETUNE defines from <asm/timex.h>
are not used anywhere. Kill them.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
diffstat:
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 -urN linux-2.6.8-rc3/include/asm-arm/arch-lh7a40x/timex.h linux-2.6.8-s390/include/asm-arm/arch-lh7a40x/timex.h
--- linux-2.6.8-rc3/include/asm-arm/arch-lh7a40x/timex.h Wed Jun 16 07:18:55 2004
+++ linux-2.6.8-s390/include/asm-arm/arch-lh7a40x/timex.h Thu Aug 5 18:40:22 2004
@@ -14,5 +14,4 @@
/*
#define CLOCK_TICK_RATE 3686400
-#define CLOCK_TICK_FACTOR 80
*/
diff -urN linux-2.6.8-rc3/include/asm-arm/arch-sa1100/timex.h linux-2.6.8-s390/include/asm-arm/arch-sa1100/timex.h
--- linux-2.6.8-rc3/include/asm-arm/arch-sa1100/timex.h Wed Jun 16 07:19:37 2004
+++ linux-2.6.8-s390/include/asm-arm/arch-sa1100/timex.h Thu Aug 5 18:40:22 2004
@@ -10,4 +10,3 @@
* SA1100 timer
*/
#define CLOCK_TICK_RATE 3686400
-#define CLOCK_TICK_FACTOR 80
diff -urN linux-2.6.8-rc3/include/asm-h8300/timex.h linux-2.6.8-s390/include/asm-h8300/timex.h
--- linux-2.6.8-rc3/include/asm-h8300/timex.h Wed Jun 16 07:19:23 2004
+++ linux-2.6.8-s390/include/asm-h8300/timex.h Thu Aug 5 18:40:22 2004
@@ -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 -urN linux-2.6.8-rc3/include/asm-i386/timex.h linux-2.6.8-s390/include/asm-i386/timex.h
--- linux-2.6.8-rc3/include/asm-i386/timex.h Thu Aug 5 18:40:05 2004
+++ linux-2.6.8-s390/include/asm-i386/timex.h Thu Aug 5 18:40:22 2004
@@ -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 -urN linux-2.6.8-rc3/include/asm-m68k/timex.h linux-2.6.8-s390/include/asm-m68k/timex.h
--- linux-2.6.8-rc3/include/asm-m68k/timex.h Wed Jun 16 07:18:57 2004
+++ linux-2.6.8-s390/include/asm-m68k/timex.h Thu Aug 5 18:40:22 2004
@@ -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 -urN linux-2.6.8-rc3/include/asm-ppc/timex.h linux-2.6.8-s390/include/asm-ppc/timex.h
--- linux-2.6.8-rc3/include/asm-ppc/timex.h Wed Jun 16 07:19:23 2004
+++ linux-2.6.8-s390/include/asm-ppc/timex.h Thu Aug 5 18:40:22 2004
@@ -11,10 +11,6 @@
#include <asm/cputable.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 -urN linux-2.6.8-rc3/include/asm-ppc64/timex.h linux-2.6.8-s390/include/asm-ppc64/timex.h
--- linux-2.6.8-rc3/include/asm-ppc64/timex.h Wed Jun 16 07:20:26 2004
+++ linux-2.6.8-s390/include/asm-ppc64/timex.h Thu Aug 5 18:40:22 2004
@@ -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 -urN linux-2.6.8-rc3/include/asm-s390/timex.h linux-2.6.8-s390/include/asm-s390/timex.h
--- linux-2.6.8-rc3/include/asm-s390/timex.h Wed Jun 16 07:18:52 2004
+++ linux-2.6.8-s390/include/asm-s390/timex.h Thu Aug 5 18:40:22 2004
@@ -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 -urN linux-2.6.8-rc3/include/asm-sh/timex.h linux-2.6.8-s390/include/asm-sh/timex.h
--- linux-2.6.8-rc3/include/asm-sh/timex.h Wed Jun 16 07:18:37 2004
+++ linux-2.6.8-s390/include/asm-sh/timex.h Thu Aug 5 18:40:22 2004
@@ -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 -urN linux-2.6.8-rc3/include/asm-sparc/timex.h linux-2.6.8-s390/include/asm-sparc/timex.h
--- linux-2.6.8-rc3/include/asm-sparc/timex.h Wed Jun 16 07:19:42 2004
+++ linux-2.6.8-s390/include/asm-sparc/timex.h Thu Aug 5 18:40:22 2004
@@ -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 -urN linux-2.6.8-rc3/include/asm-sparc64/timex.h linux-2.6.8-s390/include/asm-sparc64/timex.h
--- linux-2.6.8-rc3/include/asm-sparc64/timex.h Wed Jun 16 07:19:23 2004
+++ linux-2.6.8-s390/include/asm-sparc64/timex.h Thu Aug 5 18:40:22 2004
@@ -9,10 +9,6 @@
#include <asm/timer.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)
/* Getting on the cycle counter on sparc64. */
typedef unsigned long cycles_t;
diff -urN linux-2.6.8-rc3/include/asm-v850/timex.h linux-2.6.8-s390/include/asm-v850/timex.h
--- linux-2.6.8-rc3/include/asm-v850/timex.h Wed Jun 16 07:20:03 2004
+++ linux-2.6.8-s390/include/asm-v850/timex.h Thu Aug 5 18:40:22 2004
@@ -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 -urN linux-2.6.8-rc3/include/asm-x86_64/timex.h linux-2.6.8-s390/include/asm-x86_64/timex.h
--- linux-2.6.8-rc3/include/asm-x86_64/timex.h Wed Jun 16 07:19:36 2004
+++ linux-2.6.8-s390/include/asm-x86_64/timex.h Thu Aug 5 18:40:22 2004
@@ -13,10 +13,6 @@
#include <asm/hpet.h>
#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;
reply other threads:[~2004-08-05 18:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040805180412.GC9240@mschwid3.boeblingen.de.ibm.com \
--to=schwidefsky@de.ibm.com \
--cc=alan@redhat.com \
--cc=arjanv@redhat.com \
--cc=crisw@osdl.org \
--cc=jan.glauber@de.ibm.com \
--cc=linux-390@vm.marist.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=mulix@mulix.org \
--cc=tim.bird@am.sony.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®