diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-07-04 20:35:24 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-07-04 20:35:24 +0200 |
commit | 7036d553c6b594cb6c89cbb867a5e0570bde28a3 (patch) | |
tree | 60afc94713ac757e09cb678b99008194b8625375 /target/linux/generic | |
parent | 979069b75b9b1ae74c2a538add63a7439e2eb797 (diff) | |
download | master-187ad058-7036d553c6b594cb6c89cbb867a5e0570bde28a3.tar.gz master-187ad058-7036d553c6b594cb6c89cbb867a5e0570bde28a3.tar.bz2 master-187ad058-7036d553c6b594cb6c89cbb867a5e0570bde28a3.zip |
kernel: fix mips MT_SMP kernel crash on cache flush
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/patches-4.4/100-MIPS-fix-MT_SMP-cacheflush.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/generic/patches-4.4/100-MIPS-fix-MT_SMP-cacheflush.patch b/target/linux/generic/patches-4.4/100-MIPS-fix-MT_SMP-cacheflush.patch new file mode 100644 index 0000000000..14a10ba147 --- /dev/null +++ b/target/linux/generic/patches-4.4/100-MIPS-fix-MT_SMP-cacheflush.patch @@ -0,0 +1,17 @@ +Fix crash on cache flush with the MT_SMP variant + +Signed-off-by: Felix Fietkau <nbd@nbd.name> + +--- a/arch/mips/mm/c-r4k.c ++++ b/arch/mips/mm/c-r4k.c +@@ -60,8 +60,10 @@ static inline void r4k_on_each_cpu(void + * to restrict that call when a CM is not present because both + * CM-based SMP protocols (CMP & CPS) restrict index-based cache ops. + */ ++#ifndef CONFIG_MIPS_MT_SMP + if (!mips_cm_present()) + smp_call_function_many(&cpu_foreign_map, func, info, 1); ++#endif + func(info); + preempt_enable(); + } |