Skip to content

Commit 1b4a18f

Browse files
Isaku Yamahataaegl
authored andcommitted
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>
1 parent 41a6ba0 commit 1b4a18f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/ia64/include/asm/timex.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,6 @@ get_cycles (void)
3939
return ret;
4040
}
4141

42+
extern void ia64_cpu_local_tick (void);
43+
4244
#endif /* _ASM_IA64_TIMEX_H */

‎arch/ia64/kernel/process.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ default_idle (void)
251251
/* We don't actually take CPU down, just spin without interrupts. */
252252
static inline void play_dead(void)
253253
{
254-
extern void ia64_cpu_local_tick (void);
255254
unsigned int this_cpu = smp_processor_id();
256255

257256
/* Ack it */

0 commit comments

Comments
 (0)