aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/summit_32.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-02-17 08:45:30 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-17 11:52:46 -0500
commit2f205bc47f615b7bd0c7aba817d67ce25760eaf1 (patch)
treedb0db390facd85e29bc14e58646ec5946ee0b665 /arch/x86/kernel/summit_32.c
parent77313190d121dd1fffa965aff6e9f0782a307bb8 (diff)
x86, apic: clean up the cpu_2_logical_apiciddeclaration
extern declarations were scattered in 4 files - consolidate them into apic.h. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/summit_32.c')
-rw-r--r--arch/x86/kernel/summit_32.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kernel/summit_32.c b/arch/x86/kernel/summit_32.c
index 305977789144..7a1db1f23563 100644
--- a/arch/x86/kernel/summit_32.c
+++ b/arch/x86/kernel/summit_32.c
@@ -209,8 +209,6 @@ static inline unsigned long summit_check_apicid_present(int bit)
209 209
210#define apicid_cluster(apicid) ((apicid) & XAPIC_DEST_CLUSTER_MASK) 210#define apicid_cluster(apicid) ((apicid) & XAPIC_DEST_CLUSTER_MASK)
211 211
212extern u8 cpu_2_logical_apicid[];
213
214static inline void summit_init_apic_ldr(void) 212static inline void summit_init_apic_ldr(void)
215{ 213{
216 unsigned long val, id; 214 unsigned long val, id;
@@ -264,7 +262,7 @@ static inline int summit_cpu_to_logical_apicid(int cpu)
264#ifdef CONFIG_SMP 262#ifdef CONFIG_SMP
265 if (cpu >= nr_cpu_ids) 263 if (cpu >= nr_cpu_ids)
266 return BAD_APICID; 264 return BAD_APICID;
267 return (int)cpu_2_logical_apicid[cpu]; 265 return cpu_2_logical_apicid[cpu];
268#else 266#else
269 return logical_smp_processor_id(); 267 return logical_smp_processor_id();
270#endif 268#endif