From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Date: Wed, 15 Dec 2010 22:53:55 +0000 Subject: Re: [PATCH] x86, acpi: Handle all SRAT cpu entries even have cpu Message-Id: <4D094703.7080701@zytor.com> List-Id: References: <20101111100628.GA24728@localhost> <1289478978.2084.74.camel@laptop> <20101111124015.GA9706@localhost> <1289480656.2084.80.camel@laptop> <20101113084018.GA23098@localhost> <1289644224.2084.521.camel@laptop> <20101113120030.GA31517@localhost> <1289653078.2084.675.camel@laptop> <20101113131042.GA5522@localhost> <4CDEE314.6090107@kernel.org> <20101113235746.GA9458@localhost> <4CDF3DA1.2090806@kernel.org> <4D093ABB.4030206@zytor.com> <4D0943D5.1090404@kernel.org> In-Reply-To: <4D0943D5.1090404@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Yinghai Lu Cc: Ingo Molnar , Andrew Morton , Thomas Gleixner , Wu Fengguang , Peter Zijlstra , LKML , Nikanth Karthikesan , David Rientjes , "Zheng, Shaohui" , "linux-hotplug@vger.kernel.org" , Eric Dumazet , Bjorn Helgaas , Venkatesh Pallipadi , Nikhil Rao , Takuya Yoshikawa On 12/15/2010 02:40 PM, Yinghai Lu wrote: > On 12/15/2010 02:01 PM, H. Peter Anvin wrote: >> On 11/13/2010 05:38 PM, Yinghai Lu wrote: >>> Index: linux-2.6/arch/x86/kernel/acpi/boot.c >>> =================================>>> --- linux-2.6.orig/arch/x86/kernel/acpi/boot.c >>> +++ linux-2.6/arch/x86/kernel/acpi/boot.c >>> @@ -198,6 +198,13 @@ static void __cpuinit acpi_register_lapi >>> { >>> unsigned int ver = 0; >>> >>> +#ifdef CONFIG_X86_64 >>> + if (id >= (MAX_APICS-1)) { >>> + printk(KERN_INFO PREFIX "skipped apicid that is too big\n"); >>> + return; >>> + } >>> +#endif >>> + >>> if (!enabled) { >>> ++disabled_cpus; >>> return; >> >> Why the #ifdef? > > try to limit the affects to 32bit's bunch sub arch etc. > I really, really don't like that... we want more unification, not less... -hpa