diff options
-rw-r--r-- | arch/x86/kernel/setup_percpu.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c index 3a97a4cf1872..3b5f3271e730 100644 --- a/arch/x86/kernel/setup_percpu.c +++ b/arch/x86/kernel/setup_percpu.c | |||
@@ -423,6 +423,14 @@ void __init setup_per_cpu_areas(void) | |||
423 | early_per_cpu_ptr(x86_cpu_to_node_map) = NULL; | 423 | early_per_cpu_ptr(x86_cpu_to_node_map) = NULL; |
424 | #endif | 424 | #endif |
425 | 425 | ||
426 | #if defined(CONFIG_X86_64) && defined(CONFIG_NUMA) | ||
427 | /* | ||
428 | * make sure boot cpu node_number is right, when boot cpu is on the | ||
429 | * node that doesn't have mem installed | ||
430 | */ | ||
431 | per_cpu(node_number, boot_cpu_id) = cpu_to_node(boot_cpu_id); | ||
432 | #endif | ||
433 | |||
426 | /* Setup node to cpumask map */ | 434 | /* Setup node to cpumask map */ |
427 | setup_node_to_cpumask_map(); | 435 | setup_node_to_cpumask_map(); |
428 | 436 | ||