diff options
author | Thomas Bogendoerfer <[email protected]> | 2020-01-09 13:23:30 +0100 |
---|---|---|
committer | Paul Burton <[email protected]> | 2020-01-09 09:54:29 -0800 |
commit | a14879e149c9737e9b436006bad5637ee7dfd59b (patch) | |
tree | e7cd26ee7479ca8e00cc77ec0e062d3da3534b01 | |
parent | a20ebc047a4a300b19df79116598c8c0bd0a9d1e (diff) |
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 <[email protected]>
Signed-off-by: Paul Burton <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: Jiaxun Yang <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: James Hogan <[email protected]>
Cc: [email protected]
Cc: [email protected]
-rw-r--r-- | arch/mips/loongson64/numa.c | 2 |
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 |