tlbflush.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __ASM_ARC_TLBFLUSH__
  9. #define __ASM_ARC_TLBFLUSH__
  10. #include <linux/mm.h>
  11. void local_flush_tlb_all(void);
  12. void local_flush_tlb_mm(struct mm_struct *mm);
  13. void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page);
  14. void local_flush_tlb_kernel_range(unsigned long start, unsigned long end);
  15. void local_flush_tlb_range(struct vm_area_struct *vma,
  16. unsigned long start, unsigned long end);
  17. #ifndef CONFIG_SMP
  18. #define flush_tlb_range(vma, s, e) local_flush_tlb_range(vma, s, e)
  19. #define flush_tlb_page(vma, page) local_flush_tlb_page(vma, page)
  20. #define flush_tlb_kernel_range(s, e) local_flush_tlb_kernel_range(s, e)
  21. #define flush_tlb_all() local_flush_tlb_all()
  22. #define flush_tlb_mm(mm) local_flush_tlb_mm(mm)
  23. #else
  24. extern void flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
  25. unsigned long end);
  26. extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long page);
  27. extern void flush_tlb_kernel_range(unsigned long start, unsigned long end);
  28. extern void flush_tlb_all(void);
  29. extern void flush_tlb_mm(struct mm_struct *mm);
  30. #endif /* CONFIG_SMP */
  31. #endif