summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2014-11-05 21:57:40 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2014-11-14 17:24:21 +1100
commitf30c59e921f12b209852e1ddc197dc6a8fb0142b (patch)
tree392c066f3053fcf6f4683fbe6da3a0a06b091cc7 /arch/powerpc/include
parent06743521d0eae1263a09bccb1a92a9fbb94660b3 (diff)
downloadblackbird-op-linux-f30c59e921f12b209852e1ddc197dc6a8fb0142b.tar.gz
blackbird-op-linux-f30c59e921f12b209852e1ddc197dc6a8fb0142b.zip
mm: Update generic gup implementation to handle hugepage directory
Update generic gup implementation with powerpc specific details. On powerpc at pmd level we can have hugepte, normal pmd pointer or a pointer to the hugepage directory. Tested-by: Steve Capper <steve.capper@linaro.org> Acked-by: Steve Capper <steve.capper@linaro.org> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/page.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/page.h b/arch/powerpc/include/asm/page.h
index 26fe1ae15212..f973fce73a43 100644
--- a/arch/powerpc/include/asm/page.h
+++ b/arch/powerpc/include/asm/page.h
@@ -380,6 +380,7 @@ static inline int hugepd_ok(hugepd_t hpd)
#endif
#define is_hugepd(pdep) (hugepd_ok(*((hugepd_t *)(pdep))))
+#define pgd_huge pgd_huge
int pgd_huge(pgd_t pgd);
#else /* CONFIG_HUGETLB_PAGE */
#define is_hugepd(pdep) 0
OpenPOWER on IntegriCloud