From: Sander Vanheule Date: Sat, 18 Dec 2021 10:05:11 +0000 (+0100) Subject: MIPS: generic: enable SMP on SMVP systems X-Git-Tag: v6.6.17~8406^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18c7e03400aeb48f9d51df453b7ace5391ef4d29;p=platform%2Fkernel%2Flinux-rpi.git MIPS: generic: enable SMP on SMVP systems In addition to CPS SMP setups, also try to initialise MT SMP setups with multiple VPEs per CPU core. CMP SMP support is not provided as it is considered deprecated. Additionally, rework the code by dropping the err variable and make it similar to how other platforms perform this initialisation. Co-developed-by: INAGAKI Hiroshi Signed-off-by: INAGAKI Hiroshi Signed-off-by: Sander Vanheule Signed-off-by: Thomas Bogendoerfer --- diff --git a/arch/mips/generic/init.c b/arch/mips/generic/init.c index 1842cdd..1d712ea 100644 --- a/arch/mips/generic/init.c +++ b/arch/mips/generic/init.c @@ -110,14 +110,15 @@ void __init plat_mem_setup(void) void __init device_tree_init(void) { - int err; - unflatten_and_copy_device_tree(); mips_cpc_probe(); - err = register_cps_smp_ops(); - if (err) - err = register_up_smp_ops(); + if (!register_cps_smp_ops()) + return; + if (!register_vsmp_smp_ops()) + return; + + register_up_smp_ops(); } int __init apply_mips_fdt_fixups(void *fdt_out, size_t fdt_out_size,