Automatic merge of rsync://rsync.kernel.org/pub/scm/linux/kernel/git/gregkh/driver...
[linux-2.6/verdex.git] / include / asm-sparc64 / tlbflush.h
blob3ef9909ac3ac28110ca0b9c62c26397baff41402
1 #ifndef _SPARC64_TLBFLUSH_H
2 #define _SPARC64_TLBFLUSH_H
4 #include <linux/config.h>
5 #include <linux/mm.h>
6 #include <asm/mmu_context.h>
8 /* TLB flush operations. */
10 extern void flush_tlb_pending(void);
12 #define flush_tlb_range(vma,start,end) \
13 do { (void)(start); flush_tlb_pending(); } while (0)
14 #define flush_tlb_page(vma,addr) flush_tlb_pending()
15 #define flush_tlb_mm(mm) flush_tlb_pending()
17 extern void __flush_tlb_all(void);
18 extern void __flush_tlb_page(unsigned long context, unsigned long page, unsigned long r);
20 extern void __flush_tlb_kernel_range(unsigned long start, unsigned long end);
22 #ifndef CONFIG_SMP
24 #define flush_tlb_all() __flush_tlb_all()
25 #define flush_tlb_kernel_range(start,end) \
26 __flush_tlb_kernel_range(start,end)
28 #else /* CONFIG_SMP */
30 extern void smp_flush_tlb_all(void);
31 extern void smp_flush_tlb_kernel_range(unsigned long start, unsigned long end);
33 #define flush_tlb_all() smp_flush_tlb_all()
34 #define flush_tlb_kernel_range(start, end) \
35 smp_flush_tlb_kernel_range(start, end)
37 #endif /* ! CONFIG_SMP */
39 extern void flush_tlb_pgtables(struct mm_struct *, unsigned long, unsigned long);
41 #endif /* _SPARC64_TLBFLUSH_H */