LoongArch: Set CPU#0 as the io master for FDT
authorHuacai Chen <chenhuacai@loongson.cn>
Thu, 29 Jun 2023 12:58:42 +0000 (20:58 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 29 Jun 2023 12:58:42 +0000 (20:58 +0800)
commit872b368b2282604aafbc8af1275e0b28a73b8636
treeb3a6917d318bba90f13470d3e7b6b3cd8280e738
parent84d21f13af40f35e2e658f046d0c1e508e8a82ee
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>
arch/loongarch/kernel/smp.c