mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Cohen <david.a.cohen@intel.com>
To: mingo@redhat.com, joro@8bytes.org, hpa@zytor.com
Cc: x86@kernel.org, linux-kernel@vger.kernel.org,
	David Cohen <david.a.cohen@intel.com>
Subject: [PATCH] x86, io_apic: Fix number of pre-allocated irqs
Date: Tue, 30 Apr 2013 16:20:15 -0700	[thread overview]
Message-ID: <1367364015-12521-1-git-send-email-david.a.cohen@intel.com> (raw)

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


             reply	other threads:[~2013-04-30 23:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-30 23:20 David Cohen [this message]
2013-05-28 13:38 ` [tip:irq/core] irq/x86/io_apic: " tip-bot for David Cohen
2013-05-29  9:08   ` Thomas Gleixner
2013-05-29  9:19     ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1367364015-12521-1-git-send-email-david.a.cohen@intel.com \
    --to=david.a.cohen@intel.com \
    --cc=hpa@zytor.com \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome