tlb_64.h 960 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _SPARC64_TLB_H
  3. #define _SPARC64_TLB_H
  4. #include <linux/swap.h>
  5. #include <linux/pagemap.h>
  6. #include <asm/tlbflush.h>
  7. #include <asm/mmu_context.h>
  8. #ifdef CONFIG_SMP
  9. void smp_flush_tlb_pending(struct mm_struct *,
  10. unsigned long, unsigned long *);
  11. #endif
  12. #ifdef CONFIG_SMP
  13. void smp_flush_tlb_mm(struct mm_struct *mm);
  14. #define do_flush_tlb_mm(mm) smp_flush_tlb_mm(mm)
  15. #else
  16. #define do_flush_tlb_mm(mm) __flush_tlb_mm(CTX_HWBITS(mm->context), SECONDARY_CONTEXT)
  17. #endif
  18. void __flush_tlb_pending(unsigned long, unsigned long, unsigned long *);
  19. void flush_tlb_pending(void);
  20. #define tlb_flush(tlb) flush_tlb_pending()
  21. /*
  22. * SPARC64's hardware TLB fill does not use the Linux page-tables
  23. * and therefore we don't need a TLBI when freeing page-table pages.
  24. */
  25. #ifdef CONFIG_MMU_GATHER_RCU_TABLE_FREE
  26. #define tlb_needs_table_invalidate() (false)
  27. #endif
  28. #include <asm-generic/tlb.h>
  29. #endif /* _SPARC64_TLB_H */