diff options
| -rw-r--r-- | arch/arm64/mm/numa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/numa.c b/arch/arm64/mm/numa.c index 778a985c8a70..9a71d0678a08 100644 --- a/arch/arm64/mm/numa.c +++ b/arch/arm64/mm/numa.c | |||
| @@ -147,7 +147,7 @@ static int __init early_cpu_to_node(int cpu) | |||
| 147 | 147 | ||
| 148 | static int __init pcpu_cpu_distance(unsigned int from, unsigned int to) | 148 | static int __init pcpu_cpu_distance(unsigned int from, unsigned int to) |
| 149 | { | 149 | { |
| 150 | return node_distance(from, to); | 150 | return node_distance(early_cpu_to_node(from), early_cpu_to_node(to)); |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | static void * __init pcpu_fc_alloc(unsigned int cpu, size_t size, | 153 | static void * __init pcpu_fc_alloc(unsigned int cpu, size_t size, |
