mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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]
This commit is contained in:
1 parent
a20ebc047a
commit
a14879e149
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user