]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/powerpc/include/asm/book3s/64/tlbflush-radix.h
powerpc/jump_label: Annotate jump label assembly
[mirror_ubuntu-zesty-kernel.git] / arch / powerpc / include / asm / book3s / 64 / tlbflush-radix.h
CommitLineData
1a472c9d
AK
1#ifndef _ASM_POWERPC_TLBFLUSH_RADIX_H
2#define _ASM_POWERPC_TLBFLUSH_RADIX_H
3
4struct vm_area_struct;
5struct mm_struct;
6struct mmu_gather;
7
8static inline int mmu_get_ap(int psize)
9{
10 return mmu_psize_defs[psize].ap;
11}
12
13extern void radix__flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
14 unsigned long end);
15extern void radix__flush_tlb_kernel_range(unsigned long start, unsigned long end);
16
17extern void radix__local_flush_tlb_mm(struct mm_struct *mm);
18extern void radix__local_flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
19extern void radix___local_flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
20 unsigned long ap, int nid);
a145abf1 21extern void radix__local_flush_tlb_pwc(struct mmu_gather *tlb, unsigned long addr);
1a472c9d
AK
22extern void radix__tlb_flush(struct mmu_gather *tlb);
23#ifdef CONFIG_SMP
24extern void radix__flush_tlb_mm(struct mm_struct *mm);
25extern void radix__flush_tlb_page(struct vm_area_struct *vma, unsigned long vmaddr);
26extern void radix___flush_tlb_page(struct mm_struct *mm, unsigned long vmaddr,
27 unsigned long ap, int nid);
a145abf1 28extern void radix__flush_tlb_pwc(struct mmu_gather *tlb, unsigned long addr);
1a472c9d
AK
29#else
30#define radix__flush_tlb_mm(mm) radix__local_flush_tlb_mm(mm)
31#define radix__flush_tlb_page(vma,addr) radix__local_flush_tlb_page(vma,addr)
32#define radix___flush_tlb_page(mm,addr,p,i) radix___local_flush_tlb_page(mm,addr,p,i)
a145abf1 33#define radix__flush_tlb_pwc(tlb, addr) radix__local_flush_tlb_pwc(tlb, addr)
1a472c9d 34#endif
912cc87a
AK
35extern void radix__flush_tlb_lpid_va(unsigned long lpid, unsigned long gpa,
36 unsigned long page_size);
37extern void radix__flush_tlb_lpid(unsigned long lpid);
1a472c9d 38#endif