blob: cd458eb6d75ed113469d257d62a901ffb7f18701 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_TLB_H
2#define _ASM_TLB_H
3
4#include <asm/tlbflush.h>
5
Christoph Lameter8defab32007-05-09 02:32:48 -07006#ifdef CONFIG_MMU
7extern void check_pgt_cache(void);
8#else
Linus Torvalds1da177e2005-04-16 15:20:36 -07009#define check_pgt_cache() do {} while(0)
Christoph Lameter8defab32007-05-09 02:32:48 -070010#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
12/*
13 * we don't need any special per-pte or per-vma handling...
14 */
15#define tlb_start_vma(tlb, vma) do { } while (0)
16#define tlb_end_vma(tlb, vma) do { } while (0)
17#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)
18
19/*
20 * .. because we flush the whole mm when it fills up
21 */
22#define tlb_flush(tlb) flush_tlb_mm((tlb)->mm)
23
24#include <asm-generic/tlb.h>
25
26#endif /* _ASM_TLB_H */
27