aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorMarkus Stockhausen <markus.stockhausen@gmx.de>2022-09-26 08:46:08 +0200
committerSander Vanheule <sander@svanheule.net>2022-10-01 09:22:32 +0200
commit2b12da1313706cdd14791f329899de11ce9a35eb (patch)
tree5deeab0c2ce68898b0f727c64db420d5427531ed /target
parentf1f97db627b2f82989a0f97a74bc7a3debd67ecd (diff)
downloadupstream-2b12da1313706cdd14791f329899de11ce9a35eb.tar.gz
upstream-2b12da1313706cdd14791f329899de11ce9a35eb.tar.bz2
upstream-2b12da1313706cdd14791f329899de11ce9a35eb.zip
realtek: fix SMP startup
The scope of the SMP startup structure is wrong. It is created on the stack and not as a global variable. This can lead to startup failures. Fixes: 3f41360eb70c ("realtek: use upstream recommendation for CPU start") Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de
Diffstat (limited to 'target')
-rw-r--r--target/linux/realtek/files-5.10/arch/mips/rtl838x/prom.c3
1 files changed, 1 insertions, 2 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 ae768f9338..3282a9c38f 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
@@ -31,6 +31,7 @@ const void *fdt;
#ifdef CONFIG_MIPS_MT_SMP
extern const struct plat_smp_ops vsmp_smp_ops;
+static struct plat_smp_ops rtl_smp_ops;
static void rtl_init_secondary(void)
{
@@ -220,8 +221,6 @@ void __init prom_init(void)
#ifdef CONFIG_MIPS_MT_SMP
if (cpu_has_mipsmt) {
- struct plat_smp_ops rtl_smp_ops;
-
rtl_smp_ops = vsmp_smp_ops;
rtl_smp_ops.init_secondary = rtl_init_secondary;
register_smp_ops(&rtl_smp_ops);