aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-08-20 09:28:50 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-08-31 03:35:46 -0400
commitecce85089e6d31eed7535b68f5acdd194265690c (patch)
tree40f9b059ffa0211f6409e326d7198ec24d7e1944
parent845b3944bbdf9e9247849bf037f27ff3a3f26d87 (diff)
x86: Remove do_timer hook
This is a left over of the old x86 sub arch support. Remove it and open code it like we do in time_64.c Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--arch/x86/include/asm/do_timer.h16
-rw-r--r--arch/x86/kernel/time_32.c7
2 files changed, 4 insertions, 19 deletions
diff --git a/arch/x86/include/asm/do_timer.h b/arch/x86/include/asm/do_timer.h
deleted file mode 100644
index 23ecda0b28a0..000000000000
--- a/arch/x86/include/asm/do_timer.h
+++ /dev/null
@@ -1,16 +0,0 @@
1/* defines for inline arch setup functions */
2#include <linux/clockchips.h>
3
4#include <asm/i8259.h>
5#include <asm/i8253.h>
6
7/**
8 * do_timer_interrupt_hook - hook into timer tick
9 *
10 * Call the pit clock event handler. see asm/i8253.h
11 **/
12
13static inline void do_timer_interrupt_hook(void)
14{
15 global_clock_event->event_handler(global_clock_event);
16}
diff --git a/arch/x86/kernel/time_32.c b/arch/x86/kernel/time_32.c
index 89bbb52218b8..6fef4ea1e7a6 100644
--- a/arch/x86/kernel/time_32.c
+++ b/arch/x86/kernel/time_32.c
@@ -28,6 +28,7 @@
28 * serialize accesses to xtime/lost_ticks). 28 * serialize accesses to xtime/lost_ticks).
29 */ 29 */
30 30
31#include <linux/clockchips.h>
31#include <linux/init.h> 32#include <linux/init.h>
32#include <linux/interrupt.h> 33#include <linux/interrupt.h>
33#include <linux/time.h> 34#include <linux/time.h>
@@ -37,8 +38,8 @@
37#include <asm/hpet.h> 38#include <asm/hpet.h>
38#include <asm/time.h> 39#include <asm/time.h>
39#include <asm/timer.h> 40#include <asm/timer.h>
40 41#include <asm/i8259.h>
41#include <asm/do_timer.h> 42#include <asm/i8253.h>
42 43
43int timer_ack; 44int timer_ack;
44 45
@@ -92,7 +93,7 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
92 } 93 }
93#endif 94#endif
94 95
95 do_timer_interrupt_hook(); 96 global_clock_event->event_handler(global_clock_event);
96 97
97#ifdef CONFIG_MCA 98#ifdef CONFIG_MCA
98 if (MCA_bus) { 99 if (MCA_bus) {