summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2023-06-29 15:58:42 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2023-06-29 15:58:42 +0300
commit872b368b2282604aafbc8af1275e0b28a73b8636 (patch)
treeb3a6917d318bba90f13470d3e7b6b3cd8280e738
parent84d21f13af40f35e2e658f046d0c1e508e8a82ee (diff)
downloadlinux-872b368b2282604aafbc8af1275e0b28a73b8636.tar.xz
LoongArch: Set CPU#0 as the io master for FDT
ACPI systems set io masters by parsing ACPI MADT, FDT systems have no MADT so we explicitly set CPU#0 as the io master. Otherwise CPU#0 will be considered as hotpluggable. Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
-rw-r--r--arch/loongarch/kernel/smp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/loongarch/kernel/smp.c b/arch/loongarch/kernel/smp.c
index ed167e244cda..a858a468f746 100644
--- a/arch/loongarch/kernel/smp.c
+++ b/arch/loongarch/kernel/smp.c
@@ -210,6 +210,7 @@ static void __init fdt_smp_setup(void)
}
loongson_sysconf.nr_cpus = num_processors;
+ set_bit(0, &(loongson_sysconf.cores_io_master));
#endif
}