lkml.org 
[lkml]   [2010]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 09/16] x86: Implement cpu_to_logical_apicid() for bigsmp_32
Date
Signed-off-by: Tejun Heo <tj@kernel.org>
---
arch/x86/kernel/apic/bigsmp_32.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/apic/bigsmp_32.c b/arch/x86/kernel/apic/bigsmp_32.c
index e4d426b..df83be7 100644
--- a/arch/x86/kernel/apic/bigsmp_32.c
+++ b/arch/x86/kernel/apic/bigsmp_32.c
@@ -47,11 +47,8 @@ static unsigned long bigsmp_check_apicid_present(int bit)

static int bigsmp_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_cpu_to_apicid, cpu);
}

static inline unsigned long calculate_ldr(int cpu)
--
1.7.1


\
 
 \ /
  Last update: 2010-11-27 16:25    [W:0.148 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site