This source file includes following definitions.
- flush_tlb
- flush_tlb_kernel_range
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #ifndef __ASM_OPENRISC_TLBFLUSH_H
16 #define __ASM_OPENRISC_TLBFLUSH_H
17
18 #include <linux/mm.h>
19 #include <asm/processor.h>
20 #include <asm/pgtable.h>
21 #include <asm/pgalloc.h>
22 #include <asm/current.h>
23 #include <linux/sched.h>
24
25
26
27
28
29
30
31
32 extern void local_flush_tlb_all(void);
33 extern void local_flush_tlb_mm(struct mm_struct *mm);
34 extern void local_flush_tlb_page(struct vm_area_struct *vma,
35 unsigned long addr);
36 extern void local_flush_tlb_range(struct vm_area_struct *vma,
37 unsigned long start,
38 unsigned long end);
39
40 #ifndef CONFIG_SMP
41 #define flush_tlb_all local_flush_tlb_all
42 #define flush_tlb_mm local_flush_tlb_mm
43 #define flush_tlb_page local_flush_tlb_page
44 #define flush_tlb_range local_flush_tlb_range
45 #else
46 extern void flush_tlb_all(void);
47 extern void flush_tlb_mm(struct mm_struct *mm);
48 extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long addr);
49 extern void flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
50 unsigned long end);
51 #endif
52
53 static inline void flush_tlb(void)
54 {
55 flush_tlb_mm(current->mm);
56 }
57
58 static inline void flush_tlb_kernel_range(unsigned long start,
59 unsigned long end)
60 {
61 flush_tlb_range(NULL, start, end);
62 }
63
64 #endif