From: Yinghai Lu Date: Wed, 20 Aug 2008 03:50:03 +0000 (-0700) Subject: x86, irq: get nr_irqs from madt X-Git-Tag: v2.6.28-rc1~80^2~147 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71f521bbaf375b685aeea20c6b0ed8600cd6edfe;p=pandora-kernel.git 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 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed