summaryrefslogtreecommitdiffstats
path: root/arch/mips/loongson64
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2020-01-09 13:23:30 +0100
committerPaul Burton <paulburton@kernel.org>2020-01-09 18:54:29 +0100
commita14879e149c9737e9b436006bad5637ee7dfd59b (patch)
treee7cd26ee7479ca8e00cc77ec0e062d3da3534b01 /arch/mips/loongson64
parentMIPS: SGI-IP27: Fix node_distance (diff)
downloadlinux-a14879e149c9737e9b436006bad5637ee7dfd59b.tar.xz
linux-a14879e149c9737e9b436006bad5637ee7dfd59b.zip
MIPS: Loongson64: Fix node_distance()
Local node distance is defined as LOCAL_DISTANCE, which is 10. Use the define to give back correct local distance. Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de> Signed-off-by: Paul Burton <paulburton@kernel.org> Cc: Huacai Chen <chenhc@lemote.com> Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'arch/mips/loongson64')
-rw-r--r--arch/mips/loongson64/numa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/loongson64/numa.c b/arch/mips/loongson64/numa.c
index ef94a2278561..e5b40c5e3296 100644
--- a/arch/mips/loongson64/numa.c
+++ b/arch/mips/loongson64/numa.c
@@ -75,7 +75,7 @@ static int __init compute_node_distance(int row, int col)
loongson_sysconf.cores_per_package;
if (col == row)
- return 0;
+ return LOCAL_DISTANCE;
else if (package_row == package_col)
return 40;
else