]> bbs.cooldavid.org Git - net-next-2.6.git/commit - arch/x86/kernel/apic/io_apic.c
x86/irq: optimize nr_irqs
authorYinghai Lu <yinghai@kernel.org>
Mon, 9 Feb 2009 00:18:03 +0000 (16:18 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 9 Feb 2009 08:21:27 +0000 (09:21 +0100)
commitf1ee5548a6507d2b4293635c61ddbf12e2c00e94
tree34af86add791e385c11c8172c870732307feaac8
parent8f9ca475c994e4d32f405183d07e8c7eedbdbdb4
x86/irq: optimize nr_irqs

Impact: make nr_irqs depend more on cards used in a system

depend on nr_irq_gsi more, and have a ratio for MSI.

v2: make nr_irqs less than NR_VECTORS * nr_cpu_ids
    aka if only one cpu, we only can support nr_irqs = NR_VECTORS

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/io_apic.c