[PATCH] x86_64: Fix numa node topology detection for srat based x86_64 boxes
authorRavikiran G Thirumalai <kiran@scalex86.org>
Mon, 3 Oct 2005 17:36:28 +0000 (10:36 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 3 Oct 2005 17:54:22 +0000 (10:54 -0700)
commitddea7be0ec8d1374f0b483a81566ed56ec9f3905
treec04ca29bf4bcf047aacabcbce4d451817df155c3
parent7d6322b4659216fff76619d3b4088eecbdfa46d5
[PATCH] x86_64: Fix numa node topology detection for srat based x86_64 boxes

2.6.14-rc2 does not assign cpus to proper nodeids on our em64t numa boxen.
Our boxes use acpi srat for parsing the numa information.

srat_detect_node() used phys_proc_id[] to get to the cpu's local apic id,
but phys_proc_id[] represents the cpu<->initial_apic_id mapping.  The
following patch fixes this problem.  Now apicid_to_node[] is properly
indexed with the local apic id.

Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Acked-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/setup.c