diff options
author | Birger Koblitz <git@birger-koblitz.de> | 2021-12-30 22:53:55 +0100 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-02-17 15:21:47 +0000 |
commit | 04489b72556131a42cde999a5fedd8ea4812c73c (patch) | |
tree | f5db9b34e1add1b333166af7600d38cf87adabe9 /target | |
parent | f603090311b51d6eecc41d704be09bf77a086fa9 (diff) | |
download | upstream-04489b72556131a42cde999a5fedd8ea4812c73c.tar.gz upstream-04489b72556131a42cde999a5fedd8ea4812c73c.tar.bz2 upstream-04489b72556131a42cde999a5fedd8ea4812c73c.zip |
realtek: Enable Multithreading support in prom.c
Adds Multithreading support functions in prom.c.
Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c | 20 |
1 files changed, 20 insertions, 0 deletions
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..76e3ff7486 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 <asm/addrspace.h> #include <asm/page.h> #include <asm/cpu.h> +#include <asm/smp-ops.h> +#include <asm/mips-cps.h> #include <mach-rtl83xx.h> @@ -179,5 +181,23 @@ 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_MT_SMP + if (!register_vsmp_smp_ops()) { + return; + } +#endif + register_up_smp_ops(); } |