|
@@ -25,9 +25,11 @@
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/* which logical CPU number maps to which CPU (physical APIC ID) */
|
|
/* which logical CPU number maps to which CPU (physical APIC ID) */
|
|
|
|
+#ifdef CONFIG_SMP
|
|
u16 x86_cpu_to_apicid_init[NR_CPUS] __initdata
|
|
u16 x86_cpu_to_apicid_init[NR_CPUS] __initdata
|
|
= { [0 ... NR_CPUS-1] = BAD_APICID };
|
|
= { [0 ... NR_CPUS-1] = BAD_APICID };
|
|
void *x86_cpu_to_apicid_early_ptr;
|
|
void *x86_cpu_to_apicid_early_ptr;
|
|
|
|
+#endif
|
|
DEFINE_PER_CPU(u16, x86_cpu_to_apicid) = BAD_APICID;
|
|
DEFINE_PER_CPU(u16, x86_cpu_to_apicid) = BAD_APICID;
|
|
EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid);
|
|
EXPORT_PER_CPU_SYMBOL(x86_cpu_to_apicid);
|
|
|
|
|