diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-01-12 14:54:27 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-14 06:17:02 -0500 |
commit | b665967979d0e990f196e7c4ba88e17c9ed9b781 (patch) | |
tree | 0e29c30fced79dc2dcf493f21e468ffb363c3add | |
parent | c2c21745ecba23c74690a124bcd371f83bd71e45 (diff) |
x86: make 32bit MAX_HARDIRQS_PER_CPU to be NR_VECTORS
Impact: clean up to be same as 64bit
32-bit is using per-cpu vector too, so don't use default NR_IRQS.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/include/asm/hardirq_32.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/hardirq_32.h b/arch/x86/include/asm/hardirq_32.h index cf7954d1405f..d4b5d731073f 100644 --- a/arch/x86/include/asm/hardirq_32.h +++ b/arch/x86/include/asm/hardirq_32.h | |||
@@ -19,6 +19,9 @@ typedef struct { | |||
19 | 19 | ||
20 | DECLARE_PER_CPU(irq_cpustat_t, irq_stat); | 20 | DECLARE_PER_CPU(irq_cpustat_t, irq_stat); |
21 | 21 | ||
22 | /* We can have at most NR_VECTORS irqs routed to a cpu at a time */ | ||
23 | #define MAX_HARDIRQS_PER_CPU NR_VECTORS | ||
24 | |||
22 | #define __ARCH_IRQ_STAT | 25 | #define __ARCH_IRQ_STAT |
23 | #define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member) | 26 | #define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member) |
24 | 27 | ||