aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-5.10/0155-lantiq-VPE-nosmp.patch
blob: 2705723dda6c2d4f6a5e54d53fd0db975d3df91a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/arch/mips/kernel/vpe-mt.c
+++ b/arch/mips/kernel/vpe-mt.c
@@ -130,7 +130,10 @@ int vpe_run(struct vpe *v)
 	 * kernels need to turn it on, even if that wasn't the pre-dvpe() state.
 	 */
 #ifdef CONFIG_SMP
-	evpe(vpeflags);
+	if (!setup_max_cpus) /* nosmp is set */
+		evpe(EVPE_ENABLE);
+	else
+		evpe(vpeflags);
 #else
 	evpe(EVPE_ENABLE);
 #endif