aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/powerpc/include/asm/book3s/64/pgtable-64k.h
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2016-04-29 23:26:30 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2016-05-11 21:53:57 +1000
commitbde3eb6222e49673d2ee9dfdc6ab6e7b6ff69e91 (patch)
tree197a0e6cd5c9c3919852e626acdb67fcba9d42a7 /arch/powerpc/include/asm/book3s/64/pgtable-64k.h
parentpowerpc/mm/thp: Abstraction for THP functions (diff)
downloadwireguard-linux-bde3eb6222e49673d2ee9dfdc6ab6e7b6ff69e91.tar.xz
wireguard-linux-bde3eb6222e49673d2ee9dfdc6ab6e7b6ff69e91.zip
powerpc/mm/radix: Add radix THP callbacks
The deposited pgtable_t is a pte fragment hence we cannot use page->lru for linking then together. We use the first two 64 bits for pte fragment as list_head type to link all deposited fragments together. On withdraw we properly zero then out. 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/asm/book3s/64/pgtable-64k.h')
-rw-r--r--arch/powerpc/include/asm/book3s/64/pgtable-64k.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/book3s/64/pgtable-64k.h b/arch/powerpc/include/asm/book3s/64/pgtable-64k.h
index 79331cf77613..793ecd5ea301 100644
--- a/arch/powerpc/include/asm/book3s/64/pgtable-64k.h
+++ b/arch/powerpc/include/asm/book3s/64/pgtable-64k.h
@@ -71,6 +71,8 @@ static inline int pmd_same(pmd_t pmd_a, pmd_t pmd_b)
static inline pmd_t pmd_mkhuge(pmd_t pmd)
{
+ if (radix_enabled())
+ return radix__pmd_mkhuge(pmd);
return hash__pmd_mkhuge(pmd);
}