Skip to content

Commit 5d5a298

Browse files
KAGA-KOKOThomas Gleixner
authored andcommitted
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>
1 parent fb79d22 commit 5d5a298

8 files changed

Lines changed: 5 additions & 37 deletions

File tree

‎arch/x86/kernel/i8259_32.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#include <linux/sysdev.h>
1111
#include <linux/bitops.h>
1212

13-
#include <asm/8253pit.h>
1413
#include <asm/atomic.h>
1514
#include <asm/system.h>
1615
#include <asm/io.h>

‎drivers/input/misc/pcspkr.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <linux/init.h>
1818
#include <linux/input.h>
1919
#include <linux/platform_device.h>
20-
#include <asm/8253pit.h>
2120
#include <asm/io.h>
2221

2322
MODULE_AUTHOR("Vojtech Pavlik <vojtech@ucw.cz>");
@@ -28,6 +27,7 @@ MODULE_LICENSE("GPL");
2827
/* Use the global PIT lock ! */
2928
#include <asm/i8253.h>
3029
#else
30+
#include <asm/8253pit.h>
3131
static DEFINE_SPINLOCK(i8253_lock);
3232
#endif
3333

‎include/asm-x86/8253pit.h‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎include/asm-x86/8253pit_32.h‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎include/asm-x86/8253pit_64.h‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎include/asm-x86/i8253.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#ifndef __ASM_I8253_H__
22
#define __ASM_I8253_H__
33

4-
#ifdef CONFIG_X86_64
5-
# include <asm/8253pit.h>
6-
#endif
7-
84
/* i8253A PIT registers */
95
#define PIT_MODE 0x43
106
#define PIT_CH0 0x40

‎include/asm-x86/timex_32.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
#include <asm/tsc.h>
1111

1212
#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! */
1414
#else
15-
# define CLOCK_TICK_RATE 1193182 /* Underlying HZ */
15+
# define PIT_TICK_RATE 1193182 /* Underlying HZ */
1616
#endif
17-
17+
#define CLOCK_TICK_RATE PIT_TICK_RATE
1818

1919
extern int read_current_timer(unsigned long *timer_value);
2020
#define ARCH_HAS_READ_CURRENT_TIMER 1

‎include/asm-x86/timex_64.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
#ifndef _ASMx8664_TIMEX_H
77
#define _ASMx8664_TIMEX_H
88

9-
#include <asm/8253pit.h>
109
#include <asm/msr.h>
1110
#include <asm/vsyscall.h>
1211
#include <asm/system.h>
1312
#include <asm/processor.h>
1413
#include <asm/tsc.h>
1514
#include <linux/compiler.h>
1615

16+
#define PIT_TICK_RATE 1193182UL
1717
#define CLOCK_TICK_RATE PIT_TICK_RATE /* Underlying HZ */
1818

1919
extern int read_current_timer(unsigned long *timer_value);

0 commit comments

Comments
 (0)