From: Birger Koblitz Date: Thu, 30 Dec 2021 21:53:55 +0000 (+0100) Subject: realtek: Enable Multithreading support in prom.c X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=618b0529c4de863b70f9ac1bb5e7a2b239fec021;p=openwrt%2Fstaging%2Faparcar.git realtek: Enable Multithreading support in prom.c Adds Multithreading support functions in prom.c. Signed-off-by: Birger Koblitz --- diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c b/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c index 3390c04334..d1a4d704b5 100644 --- a/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c +++ b/target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c @@ -18,6 +18,8 @@ #include #include #include +#include +#include #include @@ -179,5 +181,28 @@ void __init prom_init(void) pr_info("SoC Type: %s\n", get_system_type()); + /* Early detection of CMP support */ + if(soc_info.family == RTL9310_FAMILY_ID) { + mips_cm_probe(); + mips_cpc_probe(); + } + prom_init_cmdline(); + +#ifdef CONFIG_MIPS_CPS + if (!register_cps_smp_ops()) { + return; + } +#endif +#ifdef CONFIG_MIPS_CMP + if (!register_cmp_smp_ops()) { + return; + } +#endif +#ifdef CONFIG_MIPS_MT_SMP + if (!register_vsmp_smp_ops()) { + return; + } +#endif + register_up_smp_ops(); }