aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLichao Liu <[email protected]>2020-05-28 09:10:31 +0800
committerThomas Bogendoerfer <[email protected]>2020-05-28 09:36:31 +0200
commita202bf71f08b3ef15356db30535e30b03cf23aec (patch)
tree166e17b4b6adb1f856a6215d6a297d6952aad1c3
parent9c43783c702fd68c96342e83ed3bb8828484a5e0 (diff)
MIPS: CPU_LOONGSON2EF need software to maintain cache consistency
CPU_LOONGSON2EF need software to maintain cache consistency, so modify the 'cpu_needs_post_dma_flush' function to return true when the cpu type is CPU_LOONGSON2EF. Cc: [email protected] Signed-off-by: Lichao Liu <[email protected]> Reviewed-by: Jiaxun Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
-rw-r--r--arch/mips/mm/dma-noncoherent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/mips/mm/dma-noncoherent.c b/arch/mips/mm/dma-noncoherent.c
index fcea92d95d86..563c2c0d0c81 100644
--- a/arch/mips/mm/dma-noncoherent.c
+++ b/arch/mips/mm/dma-noncoherent.c
@@ -33,6 +33,7 @@ static inline bool cpu_needs_post_dma_flush(void)
case CPU_R10000:
case CPU_R12000:
case CPU_BMIPS5000:
+ case CPU_LOONGSON2EF:
return true;
default:
/*