Skip to content

Commit 872b368

Browse files
committed
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>
1 parent 84d21f1 commit 872b368

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • arch/loongarch/kernel

arch/loongarch/kernel/smp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ static void __init fdt_smp_setup(void)
210210
}
211211

212212
loongson_sysconf.nr_cpus = num_processors;
213+
set_bit(0, &(loongson_sysconf.cores_io_master));
213214
#endif
214215
}
215216

0 commit comments

Comments
 (0)