Skip to content

Commit

Permalink
x86: kill 8253pit.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner authored and Thomas Gleixner committed Oct 12, 2007
1 parent fb79d22 commit 5d5a298
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 37 deletions.
1 change: 0 additions & 1 deletion arch/x86/kernel/i8259_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <linux/sysdev.h>
#include <linux/bitops.h>

#include <asm/8253pit.h>
#include <asm/atomic.h>
#include <asm/system.h>
#include <asm/io.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/misc/pcspkr.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <linux/init.h>
#include <linux/input.h>
#include <linux/platform_device.h>
#include <asm/8253pit.h>
#include <asm/io.h>

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

Expand Down
5 changes: 0 additions & 5 deletions include/asm-x86/8253pit.h

This file was deleted.

12 changes: 0 additions & 12 deletions include/asm-x86/8253pit_32.h

This file was deleted.

10 changes: 0 additions & 10 deletions include/asm-x86/8253pit_64.h

This file was deleted.

4 changes: 0 additions & 4 deletions include/asm-x86/i8253.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
#ifndef __ASM_I8253_H__
#define __ASM_I8253_H__

#ifdef CONFIG_X86_64
# include <asm/8253pit.h>
#endif

/* i8253A PIT registers */
#define PIT_MODE 0x43
#define PIT_CH0 0x40
Expand Down
6 changes: 3 additions & 3 deletions include/asm-x86/timex_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
#include <asm/tsc.h>

#ifdef CONFIG_X86_ELAN
# define CLOCK_TICK_RATE 1189200 /* AMD Elan has different frequency! */
# define PIT_TICK_RATE 1189200 /* AMD Elan has different frequency! */
#else
# define CLOCK_TICK_RATE 1193182 /* Underlying HZ */
# define PIT_TICK_RATE 1193182 /* Underlying HZ */
#endif

#define CLOCK_TICK_RATE PIT_TICK_RATE

extern int read_current_timer(unsigned long *timer_value);
#define ARCH_HAS_READ_CURRENT_TIMER 1
Expand Down
2 changes: 1 addition & 1 deletion include/asm-x86/timex_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
#ifndef _ASMx8664_TIMEX_H
#define _ASMx8664_TIMEX_H

#include <asm/8253pit.h>
#include <asm/msr.h>
#include <asm/vsyscall.h>
#include <asm/system.h>
#include <asm/processor.h>
#include <asm/tsc.h>
#include <linux/compiler.h>

#define PIT_TICK_RATE 1193182UL
#define CLOCK_TICK_RATE PIT_TICK_RATE /* Underlying HZ */

extern int read_current_timer(unsigned long *timer_value);
Expand Down

0 comments on commit 5d5a298

Please sign in to comment.