We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b9e95a commit fca5109Copy full SHA for fca5109
arch/arm64/mm/numa.c
@@ -147,7 +147,14 @@ static int __init early_cpu_to_node(int cpu)
147
148
static int __init pcpu_cpu_distance(unsigned int from, unsigned int to)
149
{
150
- return node_distance(from, to);
+#ifdef CONFIG_NEED_MULTIPLE_NODES
151
+ if (early_cpu_to_node(from) == early_cpu_to_node(to))
152
+ return LOCAL_DISTANCE;
153
+ else
154
+ return REMOTE_DISTANCE;
155
+#else
156
157
+#endif
158
}
159
160
static void * __init pcpu_fc_alloc(unsigned int cpu, size_t size,
0 commit comments