Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux/fpc-iii.git] / arch / arc / include / asm / tlbflush.h
blob71c7b2e4b8745002083e71fd19ae28305d62972e
1 /*
2 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #ifndef __ASM_ARC_TLBFLUSH__
10 #define __ASM_ARC_TLBFLUSH__
12 #include <linux/mm.h>
14 void local_flush_tlb_all(void);
15 void local_flush_tlb_mm(struct mm_struct *mm);
16 void local_flush_tlb_page(struct vm_area_struct *vma, unsigned long page);
17 void local_flush_tlb_kernel_range(unsigned long start, unsigned long end);
18 void local_flush_tlb_range(struct vm_area_struct *vma,
19 unsigned long start, unsigned long end);
21 #ifndef CONFIG_SMP
22 #define flush_tlb_range(vma, s, e) local_flush_tlb_range(vma, s, e)
23 #define flush_tlb_page(vma, page) local_flush_tlb_page(vma, page)
24 #define flush_tlb_kernel_range(s, e) local_flush_tlb_kernel_range(s, e)
25 #define flush_tlb_all() local_flush_tlb_all()
26 #define flush_tlb_mm(mm) local_flush_tlb_mm(mm)
27 #else
28 extern void flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
29 unsigned long end);
30 extern void flush_tlb_page(struct vm_area_struct *vma, unsigned long page);
31 extern void flush_tlb_kernel_range(unsigned long start, unsigned long end);
32 extern void flush_tlb_all(void);
33 extern void flush_tlb_mm(struct mm_struct *mm);
34 #endif /* CONFIG_SMP */
35 #endif