From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755089Ab0L3Rts (ORCPT ); Thu, 30 Dec 2010 12:49:48 -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 S1754330Ab0L3Rtq (ORCPT ); Thu, 30 Dec 2010 12:49:46 -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=K7dAYd6hTZ4UsLtxvSUaVhJDphvMYE9dra6AnZy1Z5E/qpKD+/Da2B4gckpkLjz4Gn 0tC68LYmwR6ubxqc+nJLSN4uOxo6x9pmLsNE9a90pXedAevGpP5iCmC9vIJvgjKnqHcK l4nuOmo7smucYHoOMIMWHpmrACZELxEN/fJHI= 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 08/16] x86: Implement the default x86_32_early_logical_apicid() Date: Thu, 30 Dec 2010 18:49:21 +0100 Message-Id: <1293731369-10851-9-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 Implement x86_32_early_logical_apicid() for the default apic flat routing. Signed-off-by: Tejun Heo --- arch/x86/kernel/apic/probe_32.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/apic/probe_32.c b/arch/x86/kernel/apic/probe_32.c index 40be7c3..0f9a9ab 100644 --- a/arch/x86/kernel/apic/probe_32.c +++ b/arch/x86/kernel/apic/probe_32.c @@ -77,6 +77,11 @@ void __init default_setup_apic_routing(void) apic->setup_apic_routing(); } +static int default_x86_32_early_logical_apicid(int cpu) +{ + return 1 << cpu; +} + static void setup_apic_flat_routing(void) { #ifdef CONFIG_X86_IO_APIC @@ -167,7 +172,7 @@ struct apic apic_default = { .wait_icr_idle = native_apic_wait_icr_idle, .safe_wait_icr_idle = native_safe_apic_wait_icr_idle, - .x86_32_early_logical_apicid = noop_x86_32_early_logical_apicid, + .x86_32_early_logical_apicid = default_x86_32_early_logical_apicid, }; extern struct apic apic_numaq; -- 1.7.1