[PATCH 11/16] x86: Implement cpu_to_logical_apicid() for numaq_32

From: Tejun Heo
Date: Sat Nov 27 2010 - 10:23:01 EST


Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
---
arch/x86/kernel/apic/es7000_32.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/apic/es7000_32.c b/arch/x86/kernel/apic/es7000_32.c
index d6199fc..6eb0bd1 100644
--- a/arch/x86/kernel/apic/es7000_32.c
+++ b/arch/x86/kernel/apic/es7000_32.c
@@ -462,11 +462,8 @@ static unsigned long es7000_check_apicid_present(int bit)

static int es7000_cpu_to_logical_apicid(int cpu)
{
- /*
- * This is stub implementation which causes static percpu area
- * layout to ignore NUMA affinity.
- */
- return BAD_APICID;
+ /* on bigsmp, logical apicid is the same as physical */
+ return early_per_cpu(x86_bios_cpu_apicid, cpu);
}

static unsigned long calculate_ldr(int cpu)
--
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/