summaryrefslogtreecommitdiffstats
path: root/include/asm-blackfin/hardirq.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-blackfin/hardirq.h')
-rw-r--r--include/asm-blackfin/hardirq.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-blackfin/hardirq.h b/include/asm-blackfin/hardirq.h
index 0cab0d35badc..b6b19f1b9dab 100644
--- a/include/asm-blackfin/hardirq.h
+++ b/include/asm-blackfin/hardirq.h
@@ -28,7 +28,11 @@ typedef struct {
* SOFTIRQ_MASK: 0x00ff0000
*/
+#if NR_IRQS > 256
+#define HARDIRQ_BITS 9
+#else
#define HARDIRQ_BITS 8
+#endif
#ifdef NR_IRQS
# if (1 << HARDIRQ_BITS) < NR_IRQS
OpenPOWER on IntegriCloud