aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/riscv/include/asm/tlbflush.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/tlbflush.h b/arch/riscv/include/asm/tlbflush.h
index 5ee4ae370b5e..c79fab3d377d 100644
--- a/arch/riscv/include/asm/tlbflush.h
+++ b/arch/riscv/include/asm/tlbflush.h
@@ -17,7 +17,10 @@
17 17
18#ifdef CONFIG_MMU 18#ifdef CONFIG_MMU
19 19
20/* Flush entire local TLB */ 20/*
21 * Flush entire local TLB. 'sfence.vma' implicitly fences with the instruction
22 * cache as well, so a 'fence.i' is not necessary.
23 */
21static inline void local_flush_tlb_all(void) 24static inline void local_flush_tlb_all(void)
22{ 25{
23 __asm__ __volatile__ ("sfence.vma" : : : "memory"); 26 __asm__ __volatile__ ("sfence.vma" : : : "memory");