aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/apic
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-01-23 08:37:35 -0500
committerIngo Molnar <mingo@elte.hu>2011-01-28 08:54:07 -0500
commit12bf24a47c1a095233cc8a8b863b509a0d8e0f2c (patch)
treeddd7e7fd5df3627d388943b751e29edeb60f6d06 /arch/x86/kernel/apic
parent3f6f6798889d50ec7ca8eef1d100cda37dc658ea (diff)
x86: Implement x86_32_early_logical_apicid() for bigsmp_32
Signed-off-by: Tejun Heo <tj@kernel.org> Cc: eric.dumazet@gmail.com Cc: yinghai@kernel.org Cc: brgerst@gmail.com Cc: gorcunov@gmail.com Cc: penberg@kernel.org Cc: shaohui.zheng@intel.com Cc: rientjes@google.com LKML-Reference: <1295789862-25482-10-git-send-email-tj@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/apic')
-rw-r--r--arch/x86/kernel/apic/bigsmp_32.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/kernel/apic/bigsmp_32.c b/arch/x86/kernel/apic/bigsmp_32.c
index dd32a9b78a87..bc7ed040bb0e 100644
--- a/arch/x86/kernel/apic/bigsmp_32.c
+++ b/arch/x86/kernel/apic/bigsmp_32.c
@@ -45,6 +45,12 @@ static unsigned long bigsmp_check_apicid_present(int bit)
45 return 1; 45 return 1;
46} 46}
47 47
48static int bigsmp_early_logical_apicid(int cpu)
49{
50 /* on bigsmp, logical apicid is the same as physical */
51 return early_per_cpu(x86_cpu_to_apicid, cpu);
52}
53
48static inline unsigned long calculate_ldr(int cpu) 54static inline unsigned long calculate_ldr(int cpu)
49{ 55{
50 unsigned long val, id; 56 unsigned long val, id;
@@ -252,5 +258,5 @@ struct apic apic_bigsmp = {
252 .wait_icr_idle = native_apic_wait_icr_idle, 258 .wait_icr_idle = native_apic_wait_icr_idle,
253 .safe_wait_icr_idle = native_safe_apic_wait_icr_idle, 259 .safe_wait_icr_idle = native_safe_apic_wait_icr_idle,
254 260
255 .x86_32_early_logical_apicid = noop_x86_32_early_logical_apicid, 261 .x86_32_early_logical_apicid = bigsmp_early_logical_apicid,
256}; 262};