]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Reduce the PTE_INDEX_SIZE
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sun, 28 Apr 2013 09:37:31 +0000 (09:37 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 30 Apr 2013 06:00:00 +0000 (16:00 +1000)
commit1e1634440279650c33efaf65fb616fcc4b7ecb1c
tree52fd09dab6b9ddb7895107aa66f8bb231bf04811
parente4a6cdbcbb1713f8ae03fa7aa75c15c4987c2a32
powerpc: Reduce the PTE_INDEX_SIZE

This make one PMD cover 16MB range. That helps in easier implementation of THP
on power. THP core code make use of one pmd entry to track the hugepage and
the range mapped by a single pmd entry should be equal to the hugepage size
supported by the hardware.

This also switch PGD to cover 16GB. That is needed so that we can simplify the
hugetlb page walking code so that we have same pte format for explicit hugepage
and THP hugepage.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/pgtable-ppc64-64k.h