diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2008-10-16 22:17:44 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-10-17 12:52:08 -0400 |
commit | 1b4a18fcfadcc51987682fc266bb88ed59d12935 (patch) | |
tree | fdb9a0a488fe772fef22711279627933baecf7c6 | |
parent | 41a6ba09839cc5b114ea2c2c064b056e35cf93f1 (diff) |
ia64: move function declaration, ia64_cpu_local_tick() from .c to .h
eliminate the function declaration ia64_cpu_local_tick() in
process.c by defining in arch/ia64/include/asm/timex.h
The same function will be used in a different .c file later.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r-- | arch/ia64/include/asm/timex.h | 2 | ||||
-rw-r--r-- | arch/ia64/kernel/process.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/timex.h b/arch/ia64/include/asm/timex.h index 05a6baf8a472..4e03cfe74a0c 100644 --- a/arch/ia64/include/asm/timex.h +++ b/arch/ia64/include/asm/timex.h | |||
@@ -39,4 +39,6 @@ get_cycles (void) | |||
39 | return ret; | 39 | return ret; |
40 | } | 40 | } |
41 | 41 | ||
42 | extern void ia64_cpu_local_tick (void); | ||
43 | |||
42 | #endif /* _ASM_IA64_TIMEX_H */ | 44 | #endif /* _ASM_IA64_TIMEX_H */ |
diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c index 3ab8373103ec..8de0f460c88d 100644 --- a/arch/ia64/kernel/process.c +++ b/arch/ia64/kernel/process.c | |||
@@ -251,7 +251,6 @@ default_idle (void) | |||
251 | /* We don't actually take CPU down, just spin without interrupts. */ | 251 | /* We don't actually take CPU down, just spin without interrupts. */ |
252 | static inline void play_dead(void) | 252 | static inline void play_dead(void) |
253 | { | 253 | { |
254 | extern void ia64_cpu_local_tick (void); | ||
255 | unsigned int this_cpu = smp_processor_id(); | 254 | unsigned int this_cpu = smp_processor_id(); |
256 | 255 | ||
257 | /* Ack it */ | 256 | /* Ack it */ |