diff options
| -rw-r--r-- | arch/x86/include/asm/smp.h | 2 | ||||
| -rw-r--r-- | arch/x86/kernel/apic/apic.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h index dc7c46a89db7..75927822c5c8 100644 --- a/arch/x86/include/asm/smp.h +++ b/arch/x86/include/asm/smp.h | |||
| @@ -38,7 +38,7 @@ static inline struct cpumask *cpu_core_mask(int cpu) | |||
| 38 | 38 | ||
| 39 | DECLARE_EARLY_PER_CPU(u16, x86_cpu_to_apicid); | 39 | DECLARE_EARLY_PER_CPU(u16, x86_cpu_to_apicid); |
| 40 | DECLARE_EARLY_PER_CPU(u16, x86_bios_cpu_apicid); | 40 | DECLARE_EARLY_PER_CPU(u16, x86_bios_cpu_apicid); |
| 41 | #if defined(CONFIG_SMP) && defined(CONFIG_X86_32) | 41 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86_32) |
| 42 | DECLARE_EARLY_PER_CPU(int, x86_cpu_to_logical_apicid); | 42 | DECLARE_EARLY_PER_CPU(int, x86_cpu_to_logical_apicid); |
| 43 | #endif | 43 | #endif |
| 44 | 44 | ||
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 4686ea59b7a0..1390cf985afd 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
| @@ -79,7 +79,6 @@ EXPORT_EARLY_PER_CPU_SYMBOL(x86_bios_cpu_apicid); | |||
| 79 | 79 | ||
| 80 | #ifdef CONFIG_X86_32 | 80 | #ifdef CONFIG_X86_32 |
| 81 | 81 | ||
| 82 | #ifdef CONFIG_SMP | ||
| 83 | /* | 82 | /* |
| 84 | * On x86_32, the mapping between cpu and logical apicid may vary | 83 | * On x86_32, the mapping between cpu and logical apicid may vary |
| 85 | * depending on apic in use. The following early percpu variable is | 84 | * depending on apic in use. The following early percpu variable is |
| @@ -87,7 +86,6 @@ EXPORT_EARLY_PER_CPU_SYMBOL(x86_bios_cpu_apicid); | |||
| 87 | * actually diverge. Let's keep it ugly for now. | 86 | * actually diverge. Let's keep it ugly for now. |
| 88 | */ | 87 | */ |
| 89 | DEFINE_EARLY_PER_CPU(int, x86_cpu_to_logical_apicid, BAD_APICID); | 88 | DEFINE_EARLY_PER_CPU(int, x86_cpu_to_logical_apicid, BAD_APICID); |
| 90 | #endif | ||
| 91 | 89 | ||
| 92 | /* | 90 | /* |
| 93 | * Knob to control our willingness to enable the local APIC. | 91 | * Knob to control our willingness to enable the local APIC. |
