diff mbox series

[2/3] MIPS: Loongson64: Fix node_distance()

Message ID 20200109122331.4109-2-tbogendoerfer@suse.de (mailing list archive)
State Mainlined
Commit a14879e149c9737e9b436006bad5637ee7dfd59b
Delegated to: Paul Burton
Headers show
Series [1/3] MIPS: SGI-IP27: Fix node_distance | expand

Commit Message

Thomas Bogendoerfer Jan. 9, 2020, 12:23 p.m. UTC
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>
---
 arch/mips/loongson64/numa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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