spi-topcliff-pch: Fix issue for transmitting over 4KByte
[zen-stable.git] / arch / sparc / include / asm / tlbflush_64.h
blob2ef463494153a65adec7c7a59a37c0095fda2649
1 #ifndef _SPARC64_TLBFLUSH_H
2 #define _SPARC64_TLBFLUSH_H
4 #include <linux/mm.h>
5 #include <asm/mmu_context.h>
7 /* TSB flush operations. */
9 #define TLB_BATCH_NR 192
11 struct tlb_batch {
12 struct mm_struct *mm;
13 unsigned long tlb_nr;
14 unsigned long vaddrs[TLB_BATCH_NR];
17 extern void flush_tsb_kernel_range(unsigned long start, unsigned long end);
18 extern void flush_tsb_user(struct tlb_batch *tb);
20 /* TLB flush operations. */
22 extern void flush_tlb_pending(void);
24 #define flush_tlb_range(vma,start,end) \
25 do { (void)(start); flush_tlb_pending(); } while (0)
26 #define flush_tlb_page(vma,addr) flush_tlb_pending()
27 #define flush_tlb_mm(mm) flush_tlb_pending()
29 /* Local cpu only. */
30 extern void __flush_tlb_all(void);
32 extern void __flush_tlb_kernel_range(unsigned long start, unsigned long end);
34 #ifndef CONFIG_SMP
36 #define flush_tlb_kernel_range(start,end) \
37 do { flush_tsb_kernel_range(start,end); \
38 __flush_tlb_kernel_range(start,end); \
39 } while (0)
41 #else /* CONFIG_SMP */
43 extern void smp_flush_tlb_kernel_range(unsigned long start, unsigned long end);
45 #define flush_tlb_kernel_range(start, end) \
46 do { flush_tsb_kernel_range(start,end); \
47 smp_flush_tlb_kernel_range(start, end); \
48 } while (0)
50 #endif /* ! CONFIG_SMP */
52 #endif /* _SPARC64_TLBFLUSH_H */