MIPS: Octeon: Move declaration of 'fixup_irqs' to common header.
PATCH 1/1 MIPS: Octeon: Move declaration of 'fixup_irqs' to common header.
To prepare for CPU hotplug of CM-based platforms.
Signed-off-by Steven J. Hill <[email protected]>
--- arch/mips/cavium-octeon/smp.c | 2 -- arch/mips/include/asm/irq.h | 1 + 2 files changed, 1 insertions(+), 2 deletions(-)
arch/mips/cavium-octeon/smp.c +0 -2
@@ -255,8 +255,6 @@ static void octeon_cpus_done(void)/* State of each CPU. */ DEFINE_PER_CPU (int, cpu_state); -extern void fixup_irqs (void ); -static int octeon_cpu_disable (void ) {unsigned int cpu =smp_processor_id ();
arch/mips/include/asm/irq.h +1 -0
@@ -126,6 +126,7 @@ extern void do_IRQ_no_affinity(unsigned int irq);extern void arch_init_irq (void );extern void spurious_interrupt (void ); +extern void fixup_irqs (void );extern int allocate_irqno (void );extern void alloc_legacy_irqno (void );
Signature · 1 line
1.7.2.5
Quoted 3 lines · Steven J. Hill
To prepare for CPU hotplug of CM-based platforms.
Signed-off-by Steven J. Hill <[email protected]>
It still builds after this, so...
Acked-by David Daney <[email protected]>
Quoted 31 lines
--- arch/mips/cavium-octeon/smp.c | 2 -- arch/mips/include/asm/irq.h | 1 + 2 files changed, 1 insertions(+), 2 deletions(-)arch/mips/cavium-octeon/smp.c +0
-2@@ -255,8 +255,6 @@ static void octeon_cpus_done(void)/* State of each CPU. */ DEFINE_PER_CPU (int, cpu_state); -extern void fixup_irqs (void ); -static int octeon_cpu_disable (void ) {unsigned int cpu =smp_processor_id ();arch/mips/include/asm/irq.h +1
-0@@ -126,6 +126,7 @@ extern void do_IRQ_no_affinity(unsigned int irq);extern void arch_init_irq (void );extern void spurious_interrupt (void ); +extern void fixup_irqs (void );extern int allocate_irqno (void );extern void alloc_legacy_irqno (void );
Quoted 1 line · Steven J. Hill
To prepare for CPU hotplug of CM-based platforms.
But for the time being this is all Octeon-specific code - and without seeing the patches for the other CM-based platforms I don't even know if that fixup_irqs() function really serves the same purpose, so I've added an octeon_ prefix to the function's name and moved its declaration to a header file.
Ralf