H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_TLB_H |
| 2 | #define _ASM_X86_TLB_H |
Thomas Gleixner | 01749f6 | 2007-10-15 23:28:21 +0200 | [diff] [blame] | 3 | |
| 4 | #define tlb_start_vma(tlb, vma) do { } while (0) |
| 5 | #define tlb_end_vma(tlb, vma) do { } while (0) |
| 6 | #define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0) |
Alex Shi | 611ae8e | 2012-06-28 09:02:22 +0800 | [diff] [blame] | 7 | |
| 8 | #define tlb_flush(tlb) \ |
| 9 | { \ |
Dave Hansen | 1de14c3 | 2013-04-12 16:23:54 -0700 | [diff] [blame] | 10 | if (!tlb->fullmm && !tlb->need_flush_all) \ |
Alex Shi | 611ae8e | 2012-06-28 09:02:22 +0800 | [diff] [blame] | 11 | flush_tlb_mm_range(tlb->mm, tlb->start, tlb->end, 0UL); \ |
| 12 | else \ |
| 13 | flush_tlb_mm_range(tlb->mm, 0UL, TLB_FLUSH_ALL, 0UL); \ |
| 14 | } |
Thomas Gleixner | 01749f6 | 2007-10-15 23:28:21 +0200 | [diff] [blame] | 15 | |
| 16 | #include <asm-generic/tlb.h> |
| 17 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 18 | #endif /* _ASM_X86_TLB_H */ |