diff options
Diffstat (limited to 'arch/x86/kernel/apic/apic.c')
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 3127079628e..0f4f3c15231 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
@@ -2020,10 +2020,14 @@ void default_init_apic_ldr(void) | |||
2020 | } | 2020 | } |
2021 | 2021 | ||
2022 | #ifdef CONFIG_X86_32 | 2022 | #ifdef CONFIG_X86_32 |
2023 | int default_apicid_to_node(int logical_apicid) | 2023 | int default_x86_32_numa_cpu_node(int cpu) |
2024 | { | 2024 | { |
2025 | #ifdef CONFIG_SMP | 2025 | #ifdef CONFIG_NUMA |
2026 | return apicid_2_node[hard_smp_processor_id()]; | 2026 | int apicid = early_per_cpu(x86_cpu_to_apicid, cpu); |
2027 | |||
2028 | if (apicid != BAD_APICID) | ||
2029 | return apicid_2_node[apicid]; | ||
2030 | return NUMA_NO_NODE; | ||
2027 | #else | 2031 | #else |
2028 | return 0; | 2032 | return 0; |
2029 | #endif | 2033 | #endif |