Commit 872b368b authored by Huacai Chen's avatar Huacai Chen
Browse files

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: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 84d21f13
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
}