]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
x86: time_XX.c declare functions before they get used
authorJaswinder Singh <jaswinder@infradead.org>
Mon, 21 Jul 2008 16:22:51 +0000 (21:52 +0530)
committerIngo Molnar <mingo@elte.hu>
Tue, 22 Jul 2008 12:36:01 +0000 (14:36 +0200)
Declare time_init() in asm-x86/time.h

Also did cleanup in asm-x86/timer.h :
timer_ack is only required for X86_32
int recalibrate_cpu_khz(void) is for X86_32

Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
arch/x86/kernel/time_32.c
include/asm-x86/time.h
include/asm-x86/timer.h

index ffe3c664afc0aae1318c1b26ab272f858d87812b..bbecf8b6bf96392de71968bdfd5da4b8aae006ad 100644 (file)
@@ -36,6 +36,7 @@
 #include <asm/arch_hooks.h>
 #include <asm/hpet.h>
 #include <asm/time.h>
+#include <asm/timer.h>
 
 #include "do_timer.h"
 
index a17fa473e91d41b496972aef624d3ab6483f9f91..5f4fc3e02387358b8246de6d50eba15341155573 100644 (file)
@@ -46,6 +46,8 @@ static inline int native_set_wallclock(unsigned long nowtime)
 
 #endif
 
+extern void time_init(void);
+
 #ifdef CONFIG_PARAVIRT
 #include <asm/paravirt.h>
 #else /* !CONFIG_PARAVIRT */
index fb2a4ddddf3d083296d0248c759071f3cc450b3e..2a8a92d5787b4cb85e75e8feb6334fb9c9ca868e 100644 (file)
@@ -9,9 +9,12 @@
 unsigned long long native_sched_clock(void);
 unsigned long native_calibrate_tsc(void);
 
+#ifdef CONFIG_X86_32
 extern int timer_ack;
-extern int no_timer_check;
 extern int recalibrate_cpu_khz(void);
+#endif /* CONFIG_X86_32 */
+
+extern int no_timer_check;
 
 #ifndef CONFIG_PARAVIRT
 #define calibrate_tsc() native_calibrate_tsc()