Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, irq: Remove arch_probe_nr_irqs

So keep nr_irqs == NR_IRQS. With radix trees is matters less.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <1265793639-15071-33-git-send-email-yinghai@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>

authored by

Yinghai Lu and committed by
H. Peter Anvin
6738762d b5eb78f7

-22
-22
arch/x86/kernel/apic/io_apic.c
··· 3826 3826 printk(KERN_DEBUG "nr_irqs_gsi: %d\n", nr_irqs_gsi); 3827 3827 } 3828 3828 3829 - #ifdef CONFIG_SPARSE_IRQ 3830 - int __init arch_probe_nr_irqs(void) 3831 - { 3832 - int nr; 3833 - 3834 - if (nr_irqs > (NR_VECTORS * nr_cpu_ids)) 3835 - nr_irqs = NR_VECTORS * nr_cpu_ids; 3836 - 3837 - nr = nr_irqs_gsi + 8 * nr_cpu_ids; 3838 - #if defined(CONFIG_PCI_MSI) || defined(CONFIG_HT_IRQ) 3839 - /* 3840 - * for MSI and HT dyn irq 3841 - */ 3842 - nr += nr_irqs_gsi * 16; 3843 - #endif 3844 - if (nr < nr_irqs) 3845 - nr_irqs = nr; 3846 - 3847 - return 0; 3848 - } 3849 - #endif 3850 - 3851 3829 static int __io_apic_set_pci_routing(struct device *dev, int irq, 3852 3830 struct io_apic_irq_attr *irq_attr) 3853 3831 {