x86: i8253: Consolidate definitions of global_clock_event
authorRalf Baechle <ralf@linux-mips.org>
Wed, 1 Jun 2011 18:05:06 +0000 (19:05 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 9 Jun 2011 13:01:40 +0000 (15:01 +0200)
There are multiple declarations of global_clock_event in header files
specific to particular clock event implementations.  Consolidate them
in <asm/time.h> and make sure all users include that header.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Venkatesh Pallipadi (Venki) <venki@google.com>
Link: http://lkml.kernel.org/r/20110601180610.762763451@duck.linux-mips.net
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/apb_timer.h
arch/x86/include/asm/i8253.h
arch/x86/include/asm/time.h
arch/x86/kernel/apb_timer.c
arch/x86/kernel/apic/apic.c
arch/x86/kernel/hpet.c
arch/x86/kernel/i8253.c

index 2fefa501d3ba64ee5db2e3541555a28ebe27598e..963f7d4877813ed0d4d34e8379f0923ab25f3018 100644 (file)
@@ -50,7 +50,6 @@
 #define APBT_DEV_USED  1
 
 extern void apbt_time_init(void);
-extern struct clock_event_device *global_clock_event;
 extern unsigned long apbt_quick_calibrate(void);
 extern int arch_setup_apbt_irqs(int irq, int trigger, int mask, int cpu);
 extern void apbt_setup_secondary_clock(void);
index 20480cef7547c9ba5c45515c4159ac50c0d47827..3d5f5eea5da4521077372697736c502f49011ac1 100644 (file)
@@ -3,8 +3,6 @@
 
 #define PIT_LATCH      LATCH
 
-extern struct clock_event_device *global_clock_event;
-
 extern void setup_pit_timer(void);
 
 #endif /* _ASM_X86_I8253_H */
index 7bdec4e9b739d8359072d2afec04dba72b2b6511..92b8aec06970fc6f8f584c8695ff27b292173186 100644 (file)
@@ -1,10 +1,12 @@
 #ifndef _ASM_X86_TIME_H
 #define _ASM_X86_TIME_H
 
-extern void hpet_time_init(void);
-
+#include <linux/clocksource.h>
 #include <asm/mc146818rtc.h>
 
+extern void hpet_time_init(void);
 extern void time_init(void);
 
+extern struct clock_event_device *global_clock_event;
+
 #endif /* _ASM_X86_TIME_H */
index 289e92862fd97aac3534eca0048cd646abb60860..2b6630d75e17fa00a9881e99a3892439b412808f 100644 (file)
@@ -44,6 +44,7 @@
 #include <asm/fixmap.h>
 #include <asm/apb_timer.h>
 #include <asm/mrst.h>
+#include <asm/time.h>
 
 #define APBT_MASK                      CLOCKSOURCE_MASK(32)
 #define APBT_SHIFT                     22
index f3c37841bb337780bad6c51edf9259b8f702eac1..9da0dc02bea49c48a8d082ff50ed0aea3d12fa4b 100644 (file)
@@ -48,6 +48,7 @@
 #include <asm/hpet.h>
 #include <asm/idle.h>
 #include <asm/mtrr.h>
+#include <asm/time.h>
 #include <asm/smp.h>
 #include <asm/mce.h>
 #include <asm/tsc.h>
index 85b8a8a76c21eca47539e06a69be4a77877a429f..0f4b0651cd3fd641ff6ecf0419a0d1f84f3c4482 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <asm/fixmap.h>
 #include <asm/hpet.h>
+#include <asm/time.h>
 
 #define HPET_MASK                      CLOCKSOURCE_MASK(32)
 
index 9c92b6ff571fd97765405844d5f7467efee212d8..5783e6de2079dc692cd3e017617b067b2045dee2 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/io.h>
 
 #include <asm/hpet.h>
+#include <asm/time.h>
 #include <asm/smp.h>
 
 /*