Kaynağa Gözat

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>
Isaku Yamahata 16 yıl önce
ebeveyn
işleme
1b4a18fcfa
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 0
      arch/ia64/include/asm/timex.h
  2. 0 1
      arch/ia64/kernel/process.c

+ 2 - 0
arch/ia64/include/asm/timex.h

@@ -39,4 +39,6 @@ get_cycles (void)
 	return ret;
 }
 
+extern void ia64_cpu_local_tick (void);
+
 #endif /* _ASM_IA64_TIMEX_H */

+ 0 - 1
arch/ia64/kernel/process.c

@@ -251,7 +251,6 @@ default_idle (void)
 /* We don't actually take CPU down, just spin without interrupts. */
 static inline void play_dead(void)
 {
-	extern void ia64_cpu_local_tick (void);
 	unsigned int this_cpu = smp_processor_id();
 
 	/* Ack it */