summaryrefslogtreecommitdiffstats
path: root/arch/x86_64
diff options
context:
space:
mode:
authorAndi Kleen2005-09-12 18:49:25 +0200
committerLinus Torvalds2005-09-12 19:50:58 +0200
commit2bce2b54ae91aac76b62e8110b627ba5e5cbbffd (patch)
tree29c389d7ce587056a833abd75c26ea82cd516b6e /arch/x86_64
parent[PATCH] x86-64: Clean up the SRAT node list before computing the hash function (diff)
downloadkernel-qcow2-linux-2bce2b54ae91aac76b62e8110b627ba5e5cbbffd.tar.gz
kernel-qcow2-linux-2bce2b54ae91aac76b62e8110b627ba5e5cbbffd.tar.xz
kernel-qcow2-linux-2bce2b54ae91aac76b62e8110b627ba5e5cbbffd.zip
[PATCH] x86-64: reset apicid<->node tables when SRAT cannot be parsed
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/mm/srat.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/mm/srat.c b/arch/x86_64/mm/srat.c
index d66b814e5033..07bf13fbcf84 100644
--- a/arch/x86_64/mm/srat.c
+++ b/arch/x86_64/mm/srat.c
@@ -81,8 +81,11 @@ static __init void cutoff_node(int i, unsigned long start, unsigned long end)
static __init void bad_srat(void)
{
+ int i;
printk(KERN_ERR "SRAT: SRAT not used.\n");
acpi_numa = -1;
+ for (i = 0; i < MAX_LOCAL_APIC; i++)
+ apicid_to_node[i] = NUMA_NO_NODE;
}
static __init inline int srat_disabled(void)