[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    [PATCH] x86, io_apic: Fix number of pre-allocated irqs
From:       David Cohen <david.a.cohen () intel ! com>
Date:       2013-04-30 23:20:15
Message-ID: 1367364015-12521-1-git-send-email-david.a.cohen () intel ! com
[Download RAW message or body]

arch_probe_nr_irqs() has a typo when returning number of preallocated
irqs. Instead of returning the calculated value, it returns a constant
number NR_IRQ_LEGACY.
This patch makes sure the calculated value is returned intead.

Signed-off-by: David Cohen <david.a.cohen@intel.com>
---
 arch/x86/kernel/apic/io_apic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 9ed796c..7ef2bd9 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -3437,7 +3437,7 @@ int __init arch_probe_nr_irqs(void)
 	if (nr < nr_irqs)
 		nr_irqs = nr;
 
-	return NR_IRQS_LEGACY;
+	return nr;
 }
 
 int io_apic_set_pci_routing(struct device *dev, int irq,
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic