Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755240AbYHSRox (ORCPT ); Tue, 19 Aug 2008 13:44:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752446AbYHSRoo (ORCPT ); Tue, 19 Aug 2008 13:44:44 -0400 Received: from rv-out-0506.google.com ([209.85.198.231]:59696 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751905AbYHSRoo (ORCPT ); Tue, 19 Aug 2008 13:44:44 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=KZD4mUNDgbDfpD0Ut5FSb7yNXMweOqv3a8jwQRn4Q5s7Sjczxm6VIUz5rgUO9jfgUT 4vbyf07lQEfpPy6KXPDMAMgpY3+ECRpjTMzntd8w+vK/fnWE7TZ5IXZTMmkJ9fsRqTdE 1l6wYpIUbyGNJYCMGWNW8upVxaxhKSWAebweY= Message-ID: <86802c440808191044h74871ba1u62330dae18599436@mail.gmail.com> Date: Tue, 19 Aug 2008 10:44:43 -0700 From: "Yinghai Lu" To: "Alex Nixon" Subject: Re: [PATCH] X86: Change the default value of nr_irqs from 32 to NR_IRQs Cc: "Ingo Molnar" , "Jeremy Fitzhardinge" , "Linux Kernel Mailing List" In-Reply-To: <48AAFAE4.7070409@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48AAFAE4.7070409@citrix.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1371 Lines: 34 On Tue, Aug 19, 2008 at 9:55 AM, Alex Nixon wrote: > From: Alex Nixon > 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 > --- > 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; > } > -- if only one ioapic, nr will be 24<<1, you will get 48. Does pv has io apic ? YH -- 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/