summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/mm/k8topology.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-02-16 23:42:16 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-02-17 08:00:41 -0800
commit2aed711a399cbc4a9bf239c13f05a8a8b460f215 (patch)
tree4df37199d4383107573b0cf3bf406590c3e81bfd /arch/x86_64/mm/k8topology.c
parentfdb9df942437c6c5d1a6928d5fff824466c3af67 (diff)
downloadop-kernel-dev-2aed711a399cbc4a9bf239c13f05a8a8b460f215.zip
op-kernel-dev-2aed711a399cbc4a9bf239c13f05a8a8b460f215.tar.gz
[PATCH] x86_64: Always pass full number of nodes to NUMA hash computation
Previously the numa hash code would be confused by holes in the node space and stop early. This is the first part of the fix for the non boot issue with empty nodes on Opterons. Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/x86_64/mm/k8topology.c')
-rw-r--r--arch/x86_64/mm/k8topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/mm/k8topology.c b/arch/x86_64/mm/k8topology.c
index a5663e0b..dd60e71 100644
--- a/arch/x86_64/mm/k8topology.c
+++ b/arch/x86_64/mm/k8topology.c
@@ -155,7 +155,7 @@ int __init k8_scan_nodes(unsigned long start, unsigned long end)
if (!found)
return -1;
- memnode_shift = compute_hash_shift(nodes, numnodes);
+ memnode_shift = compute_hash_shift(nodes, 8);
if (memnode_shift < 0) {
printk(KERN_ERR "No NUMA node hash function found. Contact maintainer\n");
return -1;
OpenPOWER on IntegriCloud