Commit 6431e6a2 authored by Dominik Hackl's avatar Dominik Hackl Committed by Linus Torvalds

[PATCH] voyager_smp.c static inline fix

This patch fixes a compile bug by moving a static inline function to the
right place.  The body of a static inline function has to be declared
before the use of this function.
Signed-off-by: default avatarDominik Hackl <dominik@hackl.dhs.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7e43c84e
...@@ -97,7 +97,6 @@ static void ack_vic_irq(unsigned int irq); ...@@ -97,7 +97,6 @@ static void ack_vic_irq(unsigned int irq);
static void vic_enable_cpi(void); static void vic_enable_cpi(void);
static void do_boot_cpu(__u8 cpuid); static void do_boot_cpu(__u8 cpuid);
static void do_quad_bootstrap(void); static void do_quad_bootstrap(void);
static inline void wrapper_smp_local_timer_interrupt(struct pt_regs *);
int hard_smp_processor_id(void); int hard_smp_processor_id(void);
...@@ -125,6 +124,14 @@ send_QIC_CPI(__u32 cpuset, __u8 cpi) ...@@ -125,6 +124,14 @@ send_QIC_CPI(__u32 cpuset, __u8 cpi)
} }
} }
static inline void
wrapper_smp_local_timer_interrupt(struct pt_regs *regs)
{
irq_enter();
smp_local_timer_interrupt(regs);
irq_exit();
}
static inline void static inline void
send_one_CPI(__u8 cpu, __u8 cpi) send_one_CPI(__u8 cpu, __u8 cpi)
{ {
...@@ -1249,14 +1256,6 @@ smp_vic_timer_interrupt(struct pt_regs *regs) ...@@ -1249,14 +1256,6 @@ smp_vic_timer_interrupt(struct pt_regs *regs)
smp_local_timer_interrupt(regs); smp_local_timer_interrupt(regs);
} }
static inline void
wrapper_smp_local_timer_interrupt(struct pt_regs *regs)
{
irq_enter();
smp_local_timer_interrupt(regs);
irq_exit();
}
/* local (per CPU) timer interrupt. It does both profiling and /* local (per CPU) timer interrupt. It does both profiling and
* process statistics/rescheduling. * process statistics/rescheduling.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment