summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/bigsmp
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-28 08:50:47 +0300
committerIngo Molnar <mingo@elte.hu>2009-01-29 01:20:23 +0300
commit5257c5111ca21c8e857b65a79ab986b313e1c362 (patch)
tree0d48a9c4a0e295e24647818c21896941cef0286c /arch/x86/include/asm/bigsmp
parent3f57a318c36e1f24070a18df8c4971ca08d33142 (diff)
downloadlinux-5257c5111ca21c8e857b65a79ab986b313e1c362.tar.xz
x86, apic: clean up ->cpu_to_logical_apicid()
- separate the namespace - remove macros Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/bigsmp')
-rw-r--r--arch/x86/include/asm/bigsmp/apic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/include/asm/bigsmp/apic.h b/arch/x86/include/asm/bigsmp/apic.h
index 77f0b7348755..d0d894ff7d3e 100644
--- a/arch/x86/include/asm/bigsmp/apic.h
+++ b/arch/x86/include/asm/bigsmp/apic.h
@@ -82,7 +82,7 @@ static inline physid_mask_t apicid_to_cpu_present(int phys_apicid)
extern u8 cpu_2_logical_apicid[];
/* Mapping from cpu number to logical apicid */
-static inline int cpu_to_logical_apicid(int cpu)
+static inline int bigsmp_cpu_to_logical_apicid(int cpu)
{
if (cpu >= nr_cpu_ids)
return BAD_APICID;
@@ -115,7 +115,7 @@ static inline unsigned int cpu_mask_to_apicid(const cpumask_t *cpumask)
int apicid;
cpu = first_cpu(*cpumask);
- apicid = cpu_to_logical_apicid(cpu);
+ apicid = bigsmp_cpu_to_logical_apicid(cpu);
return apicid;
}
@@ -132,7 +132,7 @@ static inline unsigned int cpu_mask_to_apicid_and(const struct cpumask *cpumask,
if (cpumask_test_cpu(cpu, cpu_online_mask))
break;
if (cpu < nr_cpu_ids)
- return cpu_to_logical_apicid(cpu);
+ return bigsmp_cpu_to_logical_apicid(cpu);
return BAD_APICID;
}