GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / sparc / include / asm / tlbflush_32.h
blobdc6ce73e57110beeccae2c973511806cb10cd183
1 #ifndef _SPARC_TLBFLUSH_H
2 #define _SPARC_TLBFLUSH_H
4 #include <linux/mm.h>
5 // #include <asm/processor.h>
8 #ifdef CONFIG_SMP
10 BTFIXUPDEF_CALL(void, local_flush_tlb_all, void)
11 BTFIXUPDEF_CALL(void, local_flush_tlb_mm, struct mm_struct *)
12 BTFIXUPDEF_CALL(void, local_flush_tlb_range, struct vm_area_struct *, unsigned long, unsigned long)
13 BTFIXUPDEF_CALL(void, local_flush_tlb_page, struct vm_area_struct *, unsigned long)
15 #define local_flush_tlb_all() BTFIXUP_CALL(local_flush_tlb_all)()
16 #define local_flush_tlb_mm(mm) BTFIXUP_CALL(local_flush_tlb_mm)(mm)
17 #define local_flush_tlb_range(vma,start,end) BTFIXUP_CALL(local_flush_tlb_range)(vma,start,end)
18 #define local_flush_tlb_page(vma,addr) BTFIXUP_CALL(local_flush_tlb_page)(vma,addr)
20 extern void smp_flush_tlb_all(void);
21 extern void smp_flush_tlb_mm(struct mm_struct *mm);
22 extern void smp_flush_tlb_range(struct vm_area_struct *vma,
23 unsigned long start,
24 unsigned long end);
25 extern void smp_flush_tlb_page(struct vm_area_struct *mm, unsigned long page);
27 #endif /* CONFIG_SMP */
29 BTFIXUPDEF_CALL(void, flush_tlb_all, void)
30 BTFIXUPDEF_CALL(void, flush_tlb_mm, struct mm_struct *)
31 BTFIXUPDEF_CALL(void, flush_tlb_range, struct vm_area_struct *, unsigned long, unsigned long)
32 BTFIXUPDEF_CALL(void, flush_tlb_page, struct vm_area_struct *, unsigned long)
34 #define flush_tlb_all() BTFIXUP_CALL(flush_tlb_all)()
35 #define flush_tlb_mm(mm) BTFIXUP_CALL(flush_tlb_mm)(mm)
36 #define flush_tlb_range(vma,start,end) BTFIXUP_CALL(flush_tlb_range)(vma,start,end)
37 #define flush_tlb_page(vma,addr) BTFIXUP_CALL(flush_tlb_page)(vma,addr)
39 // #define flush_tlb() flush_tlb_mm(current->active_mm)
41 static inline void flush_tlb_kernel_range(unsigned long start,
42 unsigned long end)
44 flush_tlb_all();
47 #endif /* _SPARC_TLBFLUSH_H */