From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757023AbXLRXiO (ORCPT ); Tue, 18 Dec 2007 18:38:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753012AbXLRXh7 (ORCPT ); Tue, 18 Dec 2007 18:37:59 -0500 Received: from relay1.sgi.com ([192.48.171.29]:41572 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751299AbXLRXh6 (ORCPT ); Tue, 18 Dec 2007 18:37:58 -0500 Message-Id: <20071218233758.164807000@sgi.com> References: <20071218233757.981161000@sgi.com> User-Agent: quilt/0.46-1 Date: Tue, 18 Dec 2007 15:37:58 -0800 From: travis@sgi.com To: Andrew Morton Cc: Andi Kleen , Christoph Lameter , Jack Steiner , Suresh B Siddha , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] x86: fix show cpuinfo cpu number always zero Content-Disposition: inline; filename=cpuinfo_x86-fix Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This fix corrects the problem that early_identify_cpu() sets cpu_index to '0' (needed when called by setup_arch) after smp_store_cpu_info() had set it to the correct value. The error shows up in 'cat /proc/cpuinfo' will all cpus = 0. Signed-off-by: Mike Travis --- arch/x86/kernel/smpboot_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/kernel/smpboot_64.c +++ b/arch/x86/kernel/smpboot_64.c @@ -141,8 +141,8 @@ static void __cpuinit smp_store_cpu_info struct cpuinfo_x86 *c = &cpu_data(id); *c = boot_cpu_data; - c->cpu_index = id; identify_cpu(c); + c->cpu_index = id; print_cpu_info(c); } --