diff options
author | Andi Kleen <ak@suse.de> | 2005-09-12 12:49:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-12 13:49:55 -0400 |
commit | 0b07e984fc7a51b1a7c75e1bfdcf59d1ad065353 (patch) | |
tree | 84477039c897553359694020e767638a830f4f15 /arch/x86_64/mm/numa.c | |
parent | f1f4e83fd9b5ce77d05825586d0426a54b8f3a68 (diff) |
[PATCH] x86-64: Don't assign CPU numbers in SRAT parsing
Do that later when the CPU boots. SRAT just stores the APIC<->Node
mapping node. This fixes problems on systems where the order
of SRAT entries does not match the MADT.
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/mm/numa.c')
-rw-r--r-- | arch/x86_64/mm/numa.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/mm/numa.c b/arch/x86_64/mm/numa.c index 04f7a33e144c..5b1518629893 100644 --- a/arch/x86_64/mm/numa.c +++ b/arch/x86_64/mm/numa.c | |||
@@ -29,6 +29,9 @@ int memnode_shift; | |||
29 | u8 memnodemap[NODEMAPSIZE]; | 29 | u8 memnodemap[NODEMAPSIZE]; |
30 | 30 | ||
31 | unsigned char cpu_to_node[NR_CPUS] __read_mostly = { [0 ... NR_CPUS-1] = NUMA_NO_NODE }; | 31 | unsigned char cpu_to_node[NR_CPUS] __read_mostly = { [0 ... NR_CPUS-1] = NUMA_NO_NODE }; |
32 | unsigned char apicid_to_node[256] __cpuinitdata = { | ||
33 | [0 ... NR_CPUS-1] = NUMA_NO_NODE | ||
34 | }; | ||
32 | cpumask_t node_to_cpumask[MAX_NUMNODES] __read_mostly; | 35 | cpumask_t node_to_cpumask[MAX_NUMNODES] __read_mostly; |
33 | 36 | ||
34 | int numa_off __initdata; | 37 | int numa_off __initdata; |