diff options
Diffstat (limited to 'include/asm-x86/smp_32.h')
-rw-r--r-- | include/asm-x86/smp_32.h | 5 |
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); | |||
30 | DECLARE_PER_CPU(int, cpu_number); | 30 | DECLARE_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 | |||
35 | extern int safe_smp_processor_id(void); | 33 | extern 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 |