x86: size NR_IRQS on 32-bit systems the same way as 64-bit
authorYinghai Lu <yinghai@kernel.org>
Tue, 4 Nov 2008 22:10:13 +0000 (14:10 -0800)
committerIngo Molnar <mingo@elte.hu>
Thu, 6 Nov 2008 06:23:22 +0000 (07:23 +0100)
commit1b4897688011cd05e07f00dcfe6af3331eb36a3c
tree40c390504a3c64dd08d7df7b3fe9f6e1659e9626
parentc78d0cf2925bffae8a6f00e7d9b8e971b0392edd
x86: size NR_IRQS on 32-bit systems the same way as 64-bit

Impact: make NR_IRQS big enough for system with lots of apic/pins

If lots of IO_APIC's are there (or can be there), size the same way
as 64-bit, depending on MAX_IO_APICS and NR_CPUS.

This fixes the boot problem reported by Ben Hutchings on a 32-bit
server with 5 IO-APICs and 240 IO-APIC pins.

Signed-off-by: Yinghai <yinghai@kernel.org>
Tested-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/irq_vectors.h