Sam Ravnborg | f5e706a | 2008-07-17 21:55:51 -0700 | [diff] [blame] | 1 | #ifndef _SPARC64_TLB_H |
| 2 | #define _SPARC64_TLB_H |
| 3 | |
| 4 | #include <linux/swap.h> |
| 5 | #include <linux/pagemap.h> |
| 6 | #include <asm/pgalloc.h> |
| 7 | #include <asm/tlbflush.h> |
| 8 | #include <asm/mmu_context.h> |
| 9 | |
Sam Ravnborg | f5e706a | 2008-07-17 21:55:51 -0700 | [diff] [blame] | 10 | #ifdef CONFIG_SMP |
Sam Ravnborg | f05a686 | 2014-05-16 23:25:50 +0200 | [diff] [blame] | 11 | void smp_flush_tlb_pending(struct mm_struct *, |
Sam Ravnborg | f5e706a | 2008-07-17 21:55:51 -0700 | [diff] [blame] | 12 | unsigned long, unsigned long *); |
| 13 | #endif |
| 14 | |
Sam Ravnborg | f5e706a | 2008-07-17 21:55:51 -0700 | [diff] [blame] | 15 | #ifdef CONFIG_SMP |
Sam Ravnborg | f05a686 | 2014-05-16 23:25:50 +0200 | [diff] [blame] | 16 | void smp_flush_tlb_mm(struct mm_struct *mm); |
Sam Ravnborg | f5e706a | 2008-07-17 21:55:51 -0700 | [diff] [blame] | 17 | #define do_flush_tlb_mm(mm) smp_flush_tlb_mm(mm) |
| 18 | #else |
| 19 | #define do_flush_tlb_mm(mm) __flush_tlb_mm(CTX_HWBITS(mm->context), SECONDARY_CONTEXT) |
| 20 | #endif |
| 21 | |
Sam Ravnborg | f05a686 | 2014-05-16 23:25:50 +0200 | [diff] [blame] | 22 | void __flush_tlb_pending(unsigned long, unsigned long, unsigned long *); |
| 23 | void flush_tlb_pending(void); |
Sam Ravnborg | f5e706a | 2008-07-17 21:55:51 -0700 | [diff] [blame] | 24 | |
Sam Ravnborg | f5e706a | 2008-07-17 21:55:51 -0700 | [diff] [blame] | 25 | #define tlb_start_vma(tlb, vma) do { } while (0) |
| 26 | #define tlb_end_vma(tlb, vma) do { } while (0) |
Peter Zijlstra | 90f08e3 | 2011-05-24 17:11:50 -0700 | [diff] [blame] | 27 | #define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0) |
| 28 | #define tlb_flush(tlb) flush_tlb_pending() |
| 29 | |
| 30 | #include <asm-generic/tlb.h> |
Sam Ravnborg | f5e706a | 2008-07-17 21:55:51 -0700 | [diff] [blame] | 31 | |
| 32 | #endif /* _SPARC64_TLB_H */ |