diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2007-10-12 17:04:23 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@inhelltoy.tec.linutronix.de> | 2007-10-12 17:04:23 -0400 |
commit | 5d5a2989b72847e1f5763420ea31383ca63ebf53 (patch) | |
tree | 8eacc41a879de2a1d72699e1a15f2e0d2f612650 | |
parent | fb79d22e1d4b06385796cc0db0084a2e07beccee (diff) |
x86: kill 8253pit.h
Useless header file with 32 bit and 64 bit variants. Move the
single useful line to the place where it is used.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
-rw-r--r-- | arch/x86/kernel/i8259_32.c | 1 | ||||
-rw-r--r-- | drivers/input/misc/pcspkr.c | 2 | ||||
-rw-r--r-- | include/asm-x86/8253pit.h | 5 | ||||
-rw-r--r-- | include/asm-x86/8253pit_32.h | 12 | ||||
-rw-r--r-- | include/asm-x86/8253pit_64.h | 10 | ||||
-rw-r--r-- | include/asm-x86/i8253.h | 4 | ||||
-rw-r--r-- | include/asm-x86/timex_32.h | 6 | ||||
-rw-r--r-- | include/asm-x86/timex_64.h | 2 |
8 files changed, 5 insertions, 37 deletions
diff --git a/arch/x86/kernel/i8259_32.c b/arch/x86/kernel/i8259_32.c index 0499cbe9871a..679bb33acbf1 100644 --- a/arch/x86/kernel/i8259_32.c +++ b/arch/x86/kernel/i8259_32.c | |||
@@ -10,7 +10,6 @@ | |||
10 | #include <linux/sysdev.h> | 10 | #include <linux/sysdev.h> |
11 | #include <linux/bitops.h> | 11 | #include <linux/bitops.h> |
12 | 12 | ||
13 | #include <asm/8253pit.h> | ||
14 | #include <asm/atomic.h> | 13 | #include <asm/atomic.h> |
15 | #include <asm/system.h> | 14 | #include <asm/system.h> |
16 | #include <asm/io.h> | 15 | #include <asm/io.h> |
diff --git a/drivers/input/misc/pcspkr.c b/drivers/input/misc/pcspkr.c index 906bf5e8de89..4e2ca6f0ab18 100644 --- a/drivers/input/misc/pcspkr.c +++ b/drivers/input/misc/pcspkr.c | |||
@@ -17,7 +17,6 @@ | |||
17 | #include <linux/init.h> | 17 | #include <linux/init.h> |
18 | #include <linux/input.h> | 18 | #include <linux/input.h> |
19 | #include <linux/platform_device.h> | 19 | #include <linux/platform_device.h> |
20 | #include <asm/8253pit.h> | ||
21 | #include <asm/io.h> | 20 | #include <asm/io.h> |
22 | 21 | ||
23 | MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>"); | 22 | MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>"); |
@@ -28,6 +27,7 @@ MODULE_LICENSE("GPL"); | |||
28 | /* Use the global PIT lock ! */ | 27 | /* Use the global PIT lock ! */ |
29 | #include <asm/i8253.h> | 28 | #include <asm/i8253.h> |
30 | #else | 29 | #else |
30 | #include <asm/8253pit.h> | ||
31 | static DEFINE_SPINLOCK(i8253_lock); | 31 | static DEFINE_SPINLOCK(i8253_lock); |
32 | #endif | 32 | #endif |
33 | 33 | ||
diff --git a/include/asm-x86/8253pit.h b/include/asm-x86/8253pit.h deleted file mode 100644 index d3c2b38a6618..000000000000 --- a/include/asm-x86/8253pit.h +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | #ifdef CONFIG_X86_32 | ||
2 | # include "8253pit_32.h" | ||
3 | #else | ||
4 | # include "8253pit_64.h" | ||
5 | #endif | ||
diff --git a/include/asm-x86/8253pit_32.h b/include/asm-x86/8253pit_32.h deleted file mode 100644 index 96c7c3592daf..000000000000 --- a/include/asm-x86/8253pit_32.h +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | /* | ||
2 | * 8253/8254 Programmable Interval Timer | ||
3 | */ | ||
4 | |||
5 | #ifndef _8253PIT_H | ||
6 | #define _8253PIT_H | ||
7 | |||
8 | #include <asm/timex.h> | ||
9 | |||
10 | #define PIT_TICK_RATE CLOCK_TICK_RATE | ||
11 | |||
12 | #endif | ||
diff --git a/include/asm-x86/8253pit_64.h b/include/asm-x86/8253pit_64.h deleted file mode 100644 index 285f78488ccb..000000000000 --- a/include/asm-x86/8253pit_64.h +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | /* | ||
2 | * 8253/8254 Programmable Interval Timer | ||
3 | */ | ||
4 | |||
5 | #ifndef _8253PIT_H | ||
6 | #define _8253PIT_H | ||
7 | |||
8 | #define PIT_TICK_RATE 1193182UL | ||
9 | |||
10 | #endif | ||
diff --git a/include/asm-x86/i8253.h b/include/asm-x86/i8253.h index 7eff6fd27474..28cf67da59a3 100644 --- a/include/asm-x86/i8253.h +++ b/include/asm-x86/i8253.h | |||
@@ -1,10 +1,6 @@ | |||
1 | #ifndef __ASM_I8253_H__ | 1 | #ifndef __ASM_I8253_H__ |
2 | #define __ASM_I8253_H__ | 2 | #define __ASM_I8253_H__ |
3 | 3 | ||
4 | #ifdef CONFIG_X86_64 | ||
5 | # include <asm/8253pit.h> | ||
6 | #endif | ||
7 | |||
8 | /* i8253A PIT registers */ | 4 | /* i8253A PIT registers */ |
9 | #define PIT_MODE 0x43 | 5 | #define PIT_MODE 0x43 |
10 | #define PIT_CH0 0x40 | 6 | #define PIT_CH0 0x40 |
diff --git a/include/asm-x86/timex_32.h b/include/asm-x86/timex_32.h index 3666044409f0..fa8839465bdb 100644 --- a/include/asm-x86/timex_32.h +++ b/include/asm-x86/timex_32.h | |||
@@ -10,11 +10,11 @@ | |||
10 | #include <asm/tsc.h> | 10 | #include <asm/tsc.h> |
11 | 11 | ||
12 | #ifdef CONFIG_X86_ELAN | 12 | #ifdef CONFIG_X86_ELAN |
13 | # define CLOCK_TICK_RATE 1189200 /* AMD Elan has different frequency! */ | 13 | # define PIT_TICK_RATE 1189200 /* AMD Elan has different frequency! */ |
14 | #else | 14 | #else |
15 | # define CLOCK_TICK_RATE 1193182 /* Underlying HZ */ | 15 | # define PIT_TICK_RATE 1193182 /* Underlying HZ */ |
16 | #endif | 16 | #endif |
17 | 17 | #define CLOCK_TICK_RATE PIT_TICK_RATE | |
18 | 18 | ||
19 | extern int read_current_timer(unsigned long *timer_value); | 19 | extern int read_current_timer(unsigned long *timer_value); |
20 | #define ARCH_HAS_READ_CURRENT_TIMER 1 | 20 | #define ARCH_HAS_READ_CURRENT_TIMER 1 |
diff --git a/include/asm-x86/timex_64.h b/include/asm-x86/timex_64.h index 6ed21f44d308..901bf89ce643 100644 --- a/include/asm-x86/timex_64.h +++ b/include/asm-x86/timex_64.h | |||
@@ -6,7 +6,6 @@ | |||
6 | #ifndef _ASMx8664_TIMEX_H | 6 | #ifndef _ASMx8664_TIMEX_H |
7 | #define _ASMx8664_TIMEX_H | 7 | #define _ASMx8664_TIMEX_H |
8 | 8 | ||
9 | #include <asm/8253pit.h> | ||
10 | #include <asm/msr.h> | 9 | #include <asm/msr.h> |
11 | #include <asm/vsyscall.h> | 10 | #include <asm/vsyscall.h> |
12 | #include <asm/system.h> | 11 | #include <asm/system.h> |
@@ -14,6 +13,7 @@ | |||
14 | #include <asm/tsc.h> | 13 | #include <asm/tsc.h> |
15 | #include <linux/compiler.h> | 14 | #include <linux/compiler.h> |
16 | 15 | ||
16 | #define PIT_TICK_RATE 1193182UL | ||
17 | #define CLOCK_TICK_RATE PIT_TICK_RATE /* Underlying HZ */ | 17 | #define CLOCK_TICK_RATE PIT_TICK_RATE /* Underlying HZ */ |
18 | 18 | ||
19 | extern int read_current_timer(unsigned long *timer_value); | 19 | extern int read_current_timer(unsigned long *timer_value); |