1
2 #ifndef _ASM_POWERPC_NOHASH_TLBFLUSH_H
3 #define _ASM_POWERPC_NOHASH_TLBFLUSH_H
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 struct vm_area_struct;
28 struct mm_struct;
29
30 #define MMU_NO_CONTEXT ((unsigned int)-1)
31
32 extern void flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
33 unsigned long end);
34 extern void flush_tlb_kernel_range(unsigned long start, unsigned long end);
35
36 extern void local_flush_tlb_mm(struct mm_struct *mm);
37 extern void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
38
39 extern void __local_flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
40 int tsize, int ind);
41
42 #ifdef CONFIG_SMP
43 extern void flush_tlb_mm(struct mm_struct *mm);
44 extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
45 extern void __flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
46 int tsize, int ind);
47 #else
48 #define flush_tlb_mm(mm) local_flush_tlb_mm(mm)
49 #define flush_tlb_page(vma,addr) local_flush_tlb_page(vma,addr)
50 #define __flush_tlb_page(mm,addr,p,i) __local_flush_tlb_page(mm,addr,p,i)
51 #endif
52
53 #endif