summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/topology.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/topology.h b/include/linux/topology.h
index 10df2542653b..1206d5a983a9 100644
--- a/include/linux/topology.h
+++ b/include/linux/topology.h
@@ -55,7 +55,10 @@ static inline int __next_node_with_cpus(int node)
for (node = 0; node < numnodes; node = __next_node_with_cpus(node))
#ifndef node_distance
-#define node_distance(from,to) ((from) != (to))
+/* Conform to ACPI 2.0 SLIT distance definitions */
+#define LOCAL_DISTANCE 10
+#define REMOTE_DISTANCE 20
+#define node_distance(from,to) ((from) == (to) ? LOCAL_DISTANCE : REMOTE_DISTANCE)
#endif
#ifndef PENALTY_FOR_NODE_WITH_CPUS
#define PENALTY_FOR_NODE_WITH_CPUS (1)