Skip to contentSkip to conversation

MIPS: Octeon: Move declaration of 'fixup_irqs' to common header.

PATCH In review Steven J. Hill 3 participants 3 messages Jul 25, 2013 – Sep 3, 2013 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Octeon: Move declaration of 'fixup_irqs' to common header.

To prepare for CPU hotplug of CM-based platforms.

---
 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
index 138cc80..a63dbc0 100644
@@ -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
index 7bc2cdb..8994ca8 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Steven J. Hill

To prepare for CPU hotplug of CM-based platforms.

It still builds after this, so...

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
index 138cc80..a63dbc0 100644
@@ -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
index 7bc2cdb..8994ca8 100644
@@ -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);
#2 lore raw
In reply to Steven J. Hill
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