summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/hugetlb.h
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-10-16 12:41:00 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2017-10-22 12:08:31 +0200
commit6773027205ea4ccf17055d7f0a0cd813f22fe127 (patch)
tree98b77656be9b901d3edfe5b43f7a79088ed1dd70 /arch/powerpc/include/asm/hugetlb.h
parent402e172a2ce76210f2fe921cf419d12103851344 (diff)
downloadtalos-obmc-linux-6773027205ea4ccf17055d7f0a0cd813f22fe127.tar.gz
talos-obmc-linux-6773027205ea4ccf17055d7f0a0cd813f22fe127.zip
powerpc/mm/radix: Drop unneeded NULL check
We call these functions with non-NULL mm or vma. Hence we can skip the NULL check in these functions. We also remove now unused function __local_flush_hugetlb_page(). Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> [mpe: Drop the checks with is_vm_hugetlb_page() as noticed by Nick] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/hugetlb.h')
-rw-r--r--arch/powerpc/include/asm/hugetlb.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/powerpc/include/asm/hugetlb.h b/arch/powerpc/include/asm/hugetlb.h
index b8a0fb442c64..795d825c2edd 100644
--- a/arch/powerpc/include/asm/hugetlb.h
+++ b/arch/powerpc/include/asm/hugetlb.h
@@ -40,12 +40,6 @@ static inline void flush_hugetlb_page(struct vm_area_struct *vma,
return radix__flush_hugetlb_page(vma, vmaddr);
}
-static inline void __local_flush_hugetlb_page(struct vm_area_struct *vma,
- unsigned long vmaddr)
-{
- if (radix_enabled())
- return radix__local_flush_hugetlb_page(vma, vmaddr);
-}
#else
static inline pte_t *hugepd_page(hugepd_t hpd)
OpenPOWER on IntegriCloud