patch-2.4.25 linux-2.4.25/arch/x86_64/mm/k8topology.c

Next file: linux-2.4.25/crypto/Config.in
Previous file: linux-2.4.25/arch/x86_64/kernel/process.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.24/arch/x86_64/mm/k8topology.c linux-2.4.25/arch/x86_64/mm/k8topology.c
@@ -6,7 +6,7 @@
  * Instead the northbridge registers are read directly. 
  * 
  * Copyright 2002 Andi Kleen, SuSE Labs.
- * $Id: k8topology.c,v 1.11 2003/09/12 01:55:37 ak Exp $
+ * $Id: k8topology.c,v 1.12 2004/01/29 00:51:01 ak Exp $
  */
 #include <linux/kernel.h>
 #include <linux/init.h>
@@ -100,7 +100,7 @@
 
 	printk(KERN_INFO "Scanning NUMA topology in Northbridge %d\n", nb); 
 
-	numnodes = (read_pci_config(0, nb, 0, 0x60 ) >> 4) & 3; 
+	numnodes = (read_pci_config(0, nb, 0, 0x60 ) >> 4) & 7; 
 
 	memset(&nodes,0,sizeof(nodes)); 
 	prevbase = 0;
@@ -111,7 +111,7 @@
 		base = read_pci_config(0, nb, 1, 0x40 + i*8);
 		limit = read_pci_config(0, nb, 1, 0x44 + i*8);
 
-		nodeid = limit & 3; 
+		nodeid = limit & 7; 
 		if ((base & 3) == 0) { 
 			continue;
 		} 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)