lantiq: vr9 fxs support: fixed check of SMP state within vpe-mt.c
[openwrt/openwrt.git] / target / linux / lantiq / patches-4.9 / 0155-lantiq-VPE-nosmp.patch
1 --- a/arch/mips/kernel/vpe-mt.c
2 +++ b/arch/mips/kernel/vpe-mt.c
3 @@ -132,7 +132,10 @@ int vpe_run(struct vpe *v)
4 * kernels need to turn it on, even if that wasn't the pre-dvpe() state.
5 */
6 #ifdef CONFIG_SMP
7 - evpe(vpeflags);
8 + if (!setup_max_cpus) /* nosmp is set */
9 + evpe(EVPE_ENABLE);
10 + else
11 + evpe(vpeflags);
12 #else
13 evpe(EVPE_ENABLE);
14 #endif