diff options
Diffstat (limited to 'arch/riscv/include/asm/tlbflush.h')
| -rw-r--r-- | arch/riscv/include/asm/tlbflush.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/tlbflush.h b/arch/riscv/include/asm/tlbflush.h index 5ee4ae370b5e..715b0f10af58 100644 --- a/arch/riscv/include/asm/tlbflush.h +++ b/arch/riscv/include/asm/tlbflush.h | |||
| @@ -17,7 +17,12 @@ | |||
| 17 | 17 | ||
| 18 | #ifdef CONFIG_MMU | 18 | #ifdef CONFIG_MMU |
| 19 | 19 | ||
| 20 | /* Flush entire local TLB */ | 20 | #include <linux/mm_types.h> |
| 21 | |||
| 22 | /* | ||
| 23 | * Flush entire local TLB. 'sfence.vma' implicitly fences with the instruction | ||
| 24 | * cache as well, so a 'fence.i' is not necessary. | ||
| 25 | */ | ||
| 21 | static inline void local_flush_tlb_all(void) | 26 | static inline void local_flush_tlb_all(void) |
| 22 | { | 27 | { |
| 23 | __asm__ __volatile__ ("sfence.vma" : : : "memory"); | 28 | __asm__ __volatile__ ("sfence.vma" : : : "memory"); |
