public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] X86:  Change the default value of nr_irqs from 32 to NR_IRQs
@ 2008-08-19 16:55 Alex Nixon
  2008-08-19 17:44 ` Yinghai Lu
  0 siblings, 1 reply; 12+ messages in thread
From: Alex Nixon @ 2008-08-19 16:55 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Jeremy Fitzhardinge, Yinghai Lu, Linux Kernel Mailing List

From: Alex Nixon <alex.nixon@citrix.com>
Date: Tue, 19 Aug 2008 17:49:37 +0100
Subject: [PATCH] X86:  Change the default value of nr_irqs from 32 to NR_IRQs

If the number of discovered IRQs is suspiciously low, this patch causes the number reported to default to NR_IRQS, rather than 32.  NR_IRQS has already been defined to be a sensible value for the current system (in particular, at least 224 when paravirtualisation is involved).

Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
---
 arch/x86/kernel/io_apic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index 30ff794..11bffa1 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -3632,7 +3632,7 @@ int __init probe_nr_irqs(void)
 
 	/* something wrong ? */
 	if (nr < 32)
-		nr = 32;
+		nr = NR_IRQS;
 
 	return nr;
 }
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-08-21 23:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 16:55 [PATCH] X86: Change the default value of nr_irqs from 32 to NR_IRQs Alex Nixon
2008-08-19 17:44 ` Yinghai Lu
     [not found]   ` <0E902970173AF84089673FA54B7FE78A2CA11D@lonpexch01.citrite.net>
2008-08-19 18:24     ` Yinghai Lu
2008-08-19 18:32       ` Alex Nixon
2008-08-19 19:00         ` Yinghai Lu
2008-08-19 19:50           ` Alex Nixon
2008-08-19 20:52             ` Yinghai Lu
2008-08-19 23:19               ` Alex Nixon
2008-08-20 23:23                 ` Alex Nixon
2008-08-20 23:47                   ` Yinghai Lu
2008-08-21 23:21                     ` Jeremy Fitzhardinge
2008-08-20 23:23     ` Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox