Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / arch / metag / include / asm / tlb.h
1 #ifndef __ASM_METAG_TLB_H
2 #define __ASM_METAG_TLB_H
3
4 #include <asm/cacheflush.h>
5 #include <asm/page.h>
6
7 /* Note, read http://lkml.org/lkml/2004/1/15/6 */
8
9 #ifdef CONFIG_METAG_META12
10
11 #define tlb_start_vma(tlb, vma)                                               \
12         do {                                                                  \
13                 if (!tlb->fullmm)                                             \
14                         flush_cache_range(vma, vma->vm_start, vma->vm_end);   \
15         } while (0)
16
17 #define tlb_end_vma(tlb, vma)                                                 \
18         do {                                                                  \
19                 if (!tlb->fullmm)                                             \
20                         flush_tlb_range(vma, vma->vm_start, vma->vm_end);     \
21         } while (0)
22
23
24 #else
25
26 #define tlb_start_vma(tlb, vma)                 do { } while (0)
27 #define tlb_end_vma(tlb, vma)                   do { } while (0)
28
29 #endif
30
31 #define __tlb_remove_tlb_entry(tlb, pte, addr)  do { } while (0)
32 #define tlb_flush(tlb)                          flush_tlb_mm((tlb)->mm)
33
34 #include <asm-generic/tlb.h>
35
36 #endif