MIPS: GIC: Move GIC_NUM_INTRS into platform irq.h
authorJeffrey Deans <jeffrey.deans@imgtec.com>
Thu, 17 Jul 2014 08:20:54 +0000 (09:20 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 1 Aug 2014 22:06:40 +0000 (00:06 +0200)
The value of GIC_NUM_INTRS is platform-specific. Using a default value
from gic.h will result in incorrect behaviour on some systems, so
require a suitable definition to be present in the platform's irq.h.

Signed-off-by: Jeffrey Deans <jeffrey.deans@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7373/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/gic.h
arch/mips/include/asm/mach-malta/irq.h
arch/mips/include/asm/mach-sead3/irq.h

index 5b0e6a4b2c305774307cf8fad8036d71b6debd20..80804c16bb9d13798f5959855a8a7e66ae1885c5 100644 (file)
@@ -14,6 +14,8 @@
 #include <linux/bitmap.h>
 #include <linux/threads.h>
 
+#include <irq.h>
+
 #undef GICISBYTELITTLEENDIAN
 
 /* Constants */
@@ -22,8 +24,6 @@
 #define GIC_TRIG_EDGE                  1
 #define GIC_TRIG_LEVEL                 0
 
-#define GIC_NUM_INTRS                  (24 + NR_CPUS * 2)
-
 #define MSK(n) ((1 << (n)) - 1)
 #define REG32(addr)            (*(volatile unsigned int *) (addr))
 #define REG(base, offs)                REG32((unsigned long)(base) + offs##_##OFS)
index 47cfe64efbb0d5fe9ee21eb26f05f7ae02c7c28c..f2c13d211abbc85924ec6e6bf28d6c31610913ec 100644 (file)
@@ -2,6 +2,7 @@
 #define __ASM_MACH_MIPS_IRQ_H
 
 
+#define GIC_NUM_INTRS (24 + NR_CPUS * 2)
 #define NR_IRQS 256
 
 #include_next <irq.h>
index 5d154cfbcf4c73460b4b3b2c972072f0adaaebe6..d8106f75b9afbcc026dd4761784779a8af67eddb 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __ASM_MACH_MIPS_IRQ_H
 #define __ASM_MACH_MIPS_IRQ_H
 
+#define GIC_NUM_INTRS (24 + NR_CPUS * 2)
 #define NR_IRQS 256
 
 
This page took 0.043638 seconds and 5 git commands to generate.