提交 18c7e034 编写于 作者: S Sander Vanheule 提交者: Thomas Bogendoerfer

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: NINAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: NINAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: NSander Vanheule <sander@svanheule.net>
Signed-off-by: NThomas Bogendoerfer <tsbogend@alpha.franken.de>
上级 047ff68b
...@@ -110,14 +110,15 @@ void __init plat_mem_setup(void) ...@@ -110,14 +110,15 @@ void __init plat_mem_setup(void)
void __init device_tree_init(void) void __init device_tree_init(void)
{ {
int err;
unflatten_and_copy_device_tree(); unflatten_and_copy_device_tree();
mips_cpc_probe(); mips_cpc_probe();
err = register_cps_smp_ops(); if (!register_cps_smp_ops())
if (err) return;
err = register_up_smp_ops(); if (!register_vsmp_smp_ops())
return;
register_up_smp_ops();
} }
int __init apply_mips_fdt_fixups(void *fdt_out, size_t fdt_out_size, int __init apply_mips_fdt_fixups(void *fdt_out, size_t fdt_out_size,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册