git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
asm-ia64
/
numa.h
diff --git
a/include/asm-ia64/numa.h
b/include/asm-ia64/numa.h
index
6459f61
..
3ae128f
100644
(file)
--- a/
include/asm-ia64/numa.h
+++ b/
include/asm-ia64/numa.h
@@
-59,7
+59,7
@@
extern struct node_cpuid_s node_cpuid[NR_CPUS];
*/
extern u8 numa_slit[MAX_NUMNODES * MAX_NUMNODES];
-#define node_distance(from,to) (numa_slit[
from * numnodes + to
])
+#define node_distance(from,to) (numa_slit[
(from) * num_online_nodes() + (to)
])
extern int paddr_to_nid(unsigned long paddr);