Skip to content

Commit

Permalink
x86: time_XX.c declare functions before they get used
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jaswinder Singh authored and Ingo Molnar committed Jul 22, 2008
1 parent b994b6c commit cc03849
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/x86/kernel/time_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 2 additions & 0 deletions include/asm-x86/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
5 changes: 4 additions & 1 deletion include/asm-x86/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit cc03849

Please sign in to comment.