From: Ravikiran G Thirumalai Fix the BP node_to_cpumask. 2.6.14-rc* broke the boot cpu bit as the cpu_to_node(0) is now not setup early enough for numa_init_array. cpu_to_node[] is setup much later at srat_detect_node on acpi srat based em64t machines. This seems like a problem on amd machines too, Tested on em64t though. /sys/devices/system/node/node0/cpumap shows up sanely after this patch. Signed off by: Ravikiran Thirumalai Signed-off-by: Shai Fultheim Cc: Andi Kleen Signed-off-by: Andrew Morton --- arch/x86_64/mm/numa.c | 5 +---- 1 files changed, 1 insertion(+), 4 deletions(-) diff -puN arch/x86_64/mm/numa.c~x86_64-fix-the-bp-node_to_cpumask arch/x86_64/mm/numa.c --- devel/arch/x86_64/mm/numa.c~x86_64-fix-the-bp-node_to_cpumask 2005-09-28 15:12:30.000000000 -0700 +++ devel-akpm/arch/x86_64/mm/numa.c 2005-09-28 15:12:30.000000000 -0700 @@ -163,7 +163,6 @@ void __init numa_init_array(void) rr++; } - set_bit(0, &node_to_cpumask[cpu_to_node(0)]); } #ifdef CONFIG_NUMA_EMU @@ -251,9 +250,7 @@ void __init numa_initmem_init(unsigned l __cpuinit void numa_add_cpu(int cpu) { - /* BP is initialized elsewhere */ - if (cpu) - set_bit(cpu, &node_to_cpumask[cpu_to_node(cpu)]); + set_bit(cpu, &node_to_cpumask[cpu_to_node(cpu)]); } unsigned long __init numa_free_all_bootmem(void) _