mbedtls: security bump to version 2.28.7
[openwrt/staging/jow.git] / target / linux / lantiq / patches-5.15 / 0321-MIPS-lantiq-register-smp_ops-on-non-smp-platforms.patch
1 From 6e8d8b183accefae42c62f1bd495a405ce454c7d Mon Sep 17 00:00:00 2001
2 From: Aleksander Jan Bajkowski <olek2@wp.pl>
3 Date: Sun, 21 Jan 2024 18:36:23 +0100
4 Subject: [PATCH] MIPS: lantiq: register smp_ops on non-smp platforms
5
6 Lantiq uses a common kernel config for devices with 24Kc and 34Kc cores.
7 The changes made previously to add support for interrupts on all cores
8 work on 24Kc platforms with SMP disabled and 34Kc platforms with SMP
9 enabled. This patch fixes boot issues on Danube (single core 24Kc) with
10 SMP enabled.
11
12 Fixes: 730320fd770d ("MIPS: lantiq: enable all hardware interrupts on second VPE")
13 Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
14 ---
15 arch/mips/lantiq/prom.c | 7 +++----
16 1 file changed, 3 insertions(+), 4 deletions(-)
17
18 --- a/arch/mips/lantiq/prom.c
19 +++ b/arch/mips/lantiq/prom.c
20 @@ -123,10 +123,9 @@ void __init prom_init(void)
21 prom_init_cmdline();
22
23 #if defined(CONFIG_MIPS_MT_SMP)
24 - if (cpu_has_mipsmt) {
25 - lantiq_smp_ops = vsmp_smp_ops;
26 + lantiq_smp_ops = vsmp_smp_ops;
27 + if (cpu_has_mipsmt)
28 lantiq_smp_ops.init_secondary = lantiq_init_secondary;
29 - register_smp_ops(&lantiq_smp_ops);
30 - }
31 + register_smp_ops(&lantiq_smp_ops);
32 #endif
33 }