Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261203AbVDUDj1 (ORCPT ); Wed, 20 Apr 2005 23:39:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261204AbVDUDj1 (ORCPT ); Wed, 20 Apr 2005 23:39:27 -0400 Received: from fmr19.intel.com ([134.134.136.18]:2966 "EHLO orsfmr004.jf.intel.com") by vger.kernel.org with ESMTP id S261203AbVDUDjW (ORCPT ); Wed, 20 Apr 2005 23:39:22 -0400 Subject: Re: [PATCH 4/6]cpu state clean after hot remove From: Li Shaohua To: Andrew Morton Cc: ACPI-DEV , Len Brown , Pavel Machek , Zwane Mwaikambo , lkml In-Reply-To: <1113283859.27646.430.camel@sli10-desk.sh.intel.com> References: <1113283859.27646.430.camel@sli10-desk.sh.intel.com> Content-Type: text/plain Message-Id: <1114054585.26501.4.camel@sli10-desk.sh.intel.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 21 Apr 2005 11:36:26 +0800 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1408 Lines: 40 On Tue, 2005-04-12 at 13:31, Li Shaohua wrote: > @@ -1052,7 +1086,7 @@ static void __init smp_boot_cpus(unsigne > if (max_cpus <= cpucount+1) > continue; > > - if (do_boot_cpu(apicid)) > + if ((cpu = alloc_cpu_id() > 0) && do_boot_cpu(apicid, cpu)) > printk("CPU #%d not responding - cannot use it.\n", > apicid); > else Oops, there is a typo in the patch. Andrew, please apply below patch against above patch. Sorry for the inconvenience. Thanks, Shaohua --- linux-2.6.11-root/arch/i386/kernel/smpboot.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN arch/i386/kernel/smpboot.c~smpboot arch/i386/kernel/smpboot.c --- linux-2.6.11/arch/i386/kernel/smpboot.c~smpboot 2005-04-21 11:27:53.913041424 +0800 +++ linux-2.6.11-root/arch/i386/kernel/smpboot.c 2005-04-21 11:28:44.103411328 +0800 @@ -1166,7 +1166,7 @@ static void __init smp_boot_cpus(unsigne if (max_cpus <= cpucount+1) continue; - if ((cpu = alloc_cpu_id() > 0) && do_boot_cpu(apicid, cpu)) + if (((cpu = alloc_cpu_id()) <= 0) || do_boot_cpu(apicid, cpu)) printk("CPU #%d not responding - cannot use it.\n", apicid); else _ - 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/