aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-4.9/0155-lantiq-VPE-nosmp.patch
blob: 898c2d482129903c8887d7c12166e37b03e846d2 (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
@@ -132,7 +132,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