]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/4k: don't allocate larger pmd page table for 4k
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 4 Jan 2017 02:49:12 +0000 (08:19 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Jan 2017 08:19:35 +0000 (19:19 +1100)
commite82c16af4b5ef4ceef5cbcb3255f196d3658db24
treebc8db9d698dee805d38456db545be7b7588bdbe9
parent5c0bd4b8c904cbaaddcbc8e41ef293ece939083e
powerpc/mm/4k: don't allocate larger pmd page table for 4k

We now support THP with both 64k and 4K page size configuration
for radix. (hash only support THP with 64K page size). Hence we
will have CONFIG_TRANSPARENT_HUGEPAGE enabled for both PPC_64K
and PPC_4K config. Since we only need large pmd page table
with hash configuration (to store the slot information
in the second half of the table) restrict the large pmd page table
to THP and 64K configs.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Reviewed-by: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/hash.h