mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00: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 <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
This commit is contained in:
parent
a20ebc047a
commit
a14879e149
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user