blob: c7797307fc2ba5b24adacced83c9587bc5d2a8de [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_TLB_H
2#define _ASM_X86_TLB_H
Thomas Gleixner01749f62007-10-15 23:28:21 +02003
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 Shi611ae8e2012-06-28 09:02:22 +08007
8#define tlb_flush(tlb) \
9{ \
Dave Hansen1de14c32013-04-12 16:23:54 -070010 if (!tlb->fullmm && !tlb->need_flush_all) \
Alex Shi611ae8e2012-06-28 09:02:22 +080011 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 Gleixner01749f62007-10-15 23:28:21 +020015
16#include <asm-generic/tlb.h>
17
H. Peter Anvin1965aae2008-10-22 22:26:29 -070018#endif /* _ASM_X86_TLB_H */