From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755023Ab0L3Rtg (ORCPT ); Thu, 30 Dec 2010 12:49:36 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:45973 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754985Ab0L3Rtf (ORCPT ); Thu, 30 Dec 2010 12:49:35 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=gROJ8G4vr5OOIEJWJPgdFpEnXuEh+KkwTT2wDedUFiFUJ1xvPEIaPV+8apygxu3N5f 8pllXQvdZIgbMkZMgZKMfq03qmj1l7PThlezd18wFC9vxHgawU7K0q/Yfw1QEVUY433n nGEZq4pHthoI8w8OPCYY6T2pxuUVi06s2hw5w= From: Tejun Heo To: linux-kernel@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de, hpa@zytor.com, x86@kernel.org, eric.dumazet@gmail.com, yinghai@kernel.org, brgerst@gmail.com, gorcunov@gmail.com, penberg@kernel.org, shaohui.zheng@intel.com, rientjes@google.com Cc: Tejun Heo Subject: [PATCH 01/16] x86: Kill unused static boot_cpu_logical_apicid in smpboot.c Date: Thu, 30 Dec 2010 18:49:14 +0100 Message-Id: <1293731369-10851-2-git-send-email-tj@kernel.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1293731369-10851-1-git-send-email-tj@kernel.org> References: <1293731369-10851-1-git-send-email-tj@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Tejun Heo Reviewed-by: Pekka Enberg --- arch/x86/kernel/smpboot.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 083e99d..4de6a00 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -165,8 +165,6 @@ static void unmap_cpu_to_node(int cpu) #endif #ifdef CONFIG_X86_32 -static int boot_cpu_logical_apicid; - u8 cpu_2_logical_apicid[NR_CPUS] __read_mostly = { [0 ... NR_CPUS-1] = BAD_APICID }; @@ -1101,9 +1099,7 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus) * Setup boot CPU information */ smp_store_cpu_info(0); /* Final full version of the data */ -#ifdef CONFIG_X86_32 - boot_cpu_logical_apicid = logical_smp_processor_id(); -#endif + current_thread_info()->cpu = 0; /* needed? */ for_each_possible_cpu(i) { zalloc_cpumask_var(&per_cpu(cpu_sibling_map, i), GFP_KERNEL); -- 1.7.1