summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/irq_64.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/irq_64.h')
-rw-r--r--include/asm-x86/irq_64.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asm-x86/irq_64.h b/include/asm-x86/irq_64.h
index 083d35a62c94..7608176590b6 100644
--- a/include/asm-x86/irq_64.h
+++ b/include/asm-x86/irq_64.h
@@ -10,6 +10,8 @@
* <tomsoft@informatik.tu-chemnitz.de>
*/
+#include <asm/apicdef.h>
+
#define TIMER_IRQ 0
/*
@@ -31,7 +33,11 @@
#define FIRST_SYSTEM_VECTOR 0xef /* duplicated in hw_irq.h */
+#if NR_CPUS < MAX_IO_APICS
#define NR_IRQS (NR_VECTORS + (32 * NR_CPUS))
+#else
+#define NR_IRQS (NR_VECTORS + (32 * MAX_IO_APICS))
+#endif
#define NR_IRQ_VECTORS NR_IRQS
static inline int irq_canonicalize(int irq)