summaryrefslogtreecommitdiffstats
path: root/drivers/parisc/iosapic.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-20 05:50:03 +0200
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:52:08 +0200
commit71f521bbaf375b685aeea20c6b0ed8600cd6edfe (patch)
treea18b8e8284ff7a68c341de8b1342866b9821ae7f /drivers/parisc/iosapic.c
parentirq: sparse irqs, fix #3 (diff)
downloadlinux-71f521bbaf375b685aeea20c6b0ed8600cd6edfe.tar.xz
linux-71f521bbaf375b685aeea20c6b0ed8600cd6edfe.zip
x86, irq: get nr_irqs from madt
Until now, NR_IRQS was derived from black magic defines that had to be "large enough" to both accomodate NR_CPUS and MAX_NR_IO_APICs. This resulted in a way too large irq_desc[] array on most x86 systems. Especially with larger CPU masks, the size of irq_desc can spiral out of control quickly. So be smarter about it and use precise allocation instead: determine the default maximum possible IRQ number from the ACPI MADT. Use a minimum limit of at least 32 IRQs for broken BIOSes. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'drivers/parisc/iosapic.c')
0 files changed, 0 insertions, 0 deletions