diff options
-rw-r--r-- | arch/x86/include/asm/apic.h | 8 | ||||
-rw-r--r-- | arch/x86/kernel/apic/apic.c | 11 |
2 files changed, 0 insertions, 19 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index b40ea7e4bae9..067c2f83e329 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -370,14 +370,6 @@ struct apic { | |||
370 | * won't be applied properly during early boot in this case. | 370 | * won't be applied properly during early boot in this case. |
371 | */ | 371 | */ |
372 | int (*x86_32_early_logical_apicid)(int cpu); | 372 | int (*x86_32_early_logical_apicid)(int cpu); |
373 | |||
374 | /* | ||
375 | * Optional method called from setup_local_APIC() after logical | ||
376 | * apicid is guaranteed to be known to initialize apicid -> node | ||
377 | * mapping if NUMA initialization hasn't done so already. Don't | ||
378 | * add new users. | ||
379 | */ | ||
380 | int (*x86_32_numa_cpu_node)(int cpu); | ||
381 | #endif | 373 | #endif |
382 | }; | 374 | }; |
383 | 375 | ||
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index 6b35d308688c..d705bb7ed91b 100644 --- a/arch/x86/kernel/apic/apic.c +++ b/arch/x86/kernel/apic/apic.c | |||
@@ -1342,17 +1342,6 @@ void setup_local_APIC(void) | |||
1342 | /* always use the value from LDR */ | 1342 | /* always use the value from LDR */ |
1343 | early_per_cpu(x86_cpu_to_logical_apicid, cpu) = | 1343 | early_per_cpu(x86_cpu_to_logical_apicid, cpu) = |
1344 | logical_smp_processor_id(); | 1344 | logical_smp_processor_id(); |
1345 | |||
1346 | /* | ||
1347 | * Some NUMA implementations (NUMAQ) don't initialize apicid to | ||
1348 | * node mapping during NUMA init. Now that logical apicid is | ||
1349 | * guaranteed to be known, give it another chance. This is already | ||
1350 | * a bit too late - percpu allocation has already happened without | ||
1351 | * proper NUMA affinity. | ||
1352 | */ | ||
1353 | if (apic->x86_32_numa_cpu_node) | ||
1354 | set_apicid_to_node(early_per_cpu(x86_cpu_to_apicid, cpu), | ||
1355 | apic->x86_32_numa_cpu_node(cpu)); | ||
1356 | #endif | 1345 | #endif |
1357 | 1346 | ||
1358 | /* | 1347 | /* |