tlb.h 403 B

123456789101112131415161718192021
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2012 Regents of the University of California
  4. */
  5. #ifndef _ASM_RISCV_TLB_H
  6. #define _ASM_RISCV_TLB_H
  7. struct mmu_gather;
  8. static void tlb_flush(struct mmu_gather *tlb);
  9. #define tlb_flush tlb_flush
  10. #include <asm-generic/tlb.h>
  11. static inline void tlb_flush(struct mmu_gather *tlb)
  12. {
  13. flush_tlb_mm(tlb->mm);
  14. }
  15. #endif /* _ASM_RISCV_TLB_H */