Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] x86_64: fix the BP node_to_cpumask

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 <kiran@scalex86.org>
Signed-off-by: Shai Fultheim <shai@scalex86.org>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Ravikiran G Thirumalai and committed by
Linus Torvalds
e6a045a5 2dd960d6

+1 -4
+1 -4
arch/x86_64/mm/numa.c
··· 178 178 rr++; 179 179 } 180 180 181 - set_bit(0, &node_to_cpumask[cpu_to_node(0)]); 182 181 } 183 182 184 183 #ifdef CONFIG_NUMA_EMU ··· 265 266 266 267 __cpuinit void numa_add_cpu(int cpu) 267 268 { 268 - /* BP is initialized elsewhere */ 269 - if (cpu) 270 - set_bit(cpu, &node_to_cpumask[cpu_to_node(cpu)]); 269 + set_bit(cpu, &node_to_cpumask[cpu_to_node(cpu)]); 271 270 } 272 271 273 272 unsigned long __init numa_free_all_bootmem(void)