[RFC PATCH 1/3] [ARM] allow NR_IRQS to be larger than 256

Eric Miao eric.y.miao at gmail.com
Thu Feb 4 14:09:22 EST 2010


commit fc14e7ca387688ca63eafa16d4aa3012898d096d
Author: Eric Miao <eric.y.miao at gmail.com>
Date:   Mon Dec 28 11:05:55 2009 +0800

    [ARM] allow NR_IRQS to be larger than 256

    Signed-off-by: Eric Miao <eric.y.miao at gmail.com>

diff --git a/arch/arm/include/asm/hardirq.h b/arch/arm/include/asm/hardirq.h
index 182310b..6d7485a 100644
--- a/arch/arm/include/asm/hardirq.h
+++ b/arch/arm/include/asm/hardirq.h
@@ -12,7 +12,9 @@ typedef struct {

 #include <linux/irq_cpustat.h>	/* Standard mappings for irq_cpustat_t above */

-#if NR_IRQS > 256
+#if NR_IRQS > 512
+#define HARDIRQ_BITS	10
+#elif NR_IRQS > 256
 #define HARDIRQ_BITS	9
 #else
 #define HARDIRQ_BITS	8



More information about the linux-arm-kernel mailing list