aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/smp_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/smp_32.h')
-rw-r--r--include/asm-x86/smp_32.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/asm-x86/smp_32.h b/include/asm-x86/smp_32.h
index 478f5564630f..f861d0415171 100644
--- a/include/asm-x86/smp_32.h
+++ b/include/asm-x86/smp_32.h
@@ -30,8 +30,6 @@ extern void zap_low_mappings (void);
30DECLARE_PER_CPU(int, cpu_number); 30DECLARE_PER_CPU(int, cpu_number);
31#define raw_smp_processor_id() (x86_read_percpu(cpu_number)) 31#define raw_smp_processor_id() (x86_read_percpu(cpu_number))
32 32
33#define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu)
34
35extern int safe_smp_processor_id(void); 33extern int safe_smp_processor_id(void);
36 34
37/* We don't mark CPUs online until __cpu_up(), so we need another measure */ 35/* We don't mark CPUs online until __cpu_up(), so we need another measure */
@@ -41,10 +39,7 @@ static inline int num_booting_cpus(void)
41} 39}
42 40
43#else /* CONFIG_SMP */ 41#else /* CONFIG_SMP */
44
45#define safe_smp_processor_id() 0 42#define safe_smp_processor_id() 0
46#define cpu_physical_id(cpu) boot_cpu_physical_apicid
47
48#endif /* !CONFIG_SMP */ 43#endif /* !CONFIG_SMP */
49 44
50#ifdef CONFIG_X86_LOCAL_APIC 45#ifdef CONFIG_X86_LOCAL_APIC