MIPS: Loongson64: Set cluster for cores
cluster is required for cacheinfo to set shared_cpu_map correctly. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Tiezhu Yang <yangtiezhu@loongson.cn> Tested-by: Tiezhu Yang <yangtiezhu@loongson.cn> Reviewed-by: Huacai Chen <chenhuacai@kernel.org> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
e8bb8f2823
commit
68324a68fb
|
@ -492,6 +492,8 @@ static void __init loongson3_smp_setup(void)
|
|||
__cpu_number_map[i] = num;
|
||||
__cpu_logical_map[num] = i;
|
||||
set_cpu_possible(num, true);
|
||||
/* Loongson processors are always grouped by 4 */
|
||||
cpu_set_cluster(&cpu_data[num], i / 4);
|
||||
num++;
|
||||
}
|
||||
i++;
|
||||
|
|
Loading…
Reference in New Issue