MIPS: Move declaration of Octeon function fixup_irqs() to header.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Ralf Baechle 2013-09-03 18:19:28 +02:00
parent 4defe4559e
commit 17efb59adc
3 changed files with 4 additions and 4 deletions

View File

@ -1776,7 +1776,7 @@ asmlinkage void plat_irq_dispatch(void)
#ifdef CONFIG_HOTPLUG_CPU #ifdef CONFIG_HOTPLUG_CPU
void fixup_irqs(void) void octeon_fixup_irqs(void)
{ {
irq_cpu_offline(); irq_cpu_offline();
} }

View File

@ -255,8 +255,6 @@ static void octeon_cpus_done(void)
/* State of each CPU. */ /* State of each CPU. */
DEFINE_PER_CPU(int, cpu_state); DEFINE_PER_CPU(int, cpu_state);
extern void fixup_irqs(void);
static int octeon_cpu_disable(void) static int octeon_cpu_disable(void)
{ {
unsigned int cpu = smp_processor_id(); unsigned int cpu = smp_processor_id();
@ -267,7 +265,7 @@ static int octeon_cpu_disable(void)
set_cpu_online(cpu, false); set_cpu_online(cpu, false);
cpu_clear(cpu, cpu_callin_map); cpu_clear(cpu, cpu_callin_map);
local_irq_disable(); local_irq_disable();
fixup_irqs(); octeon_fixup_irqs();
local_irq_enable(); local_irq_enable();
flush_cache_all(); flush_cache_all();

View File

@ -251,4 +251,6 @@ extern void (*octeon_irq_setup_secondary)(void);
typedef void (*octeon_irq_ip4_handler_t)(void); typedef void (*octeon_irq_ip4_handler_t)(void);
void octeon_irq_set_ip4_handler(octeon_irq_ip4_handler_t); void octeon_irq_set_ip4_handler(octeon_irq_ip4_handler_t);
extern void octeon_fixup_irqs(void);
#endif /* __ASM_OCTEON_OCTEON_H */ #endif /* __ASM_OCTEON_OCTEON_H */