powerpc/mm: Don't hardcode page table size
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 1 Dec 2015 03:36:55 +0000 (09:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Dec 2015 04:19:15 +0000 (15:19 +1100)
commit62607bc64c5cbb8d9b330da4be34c6d5302348af
tree23f1f742879e37efe67eeccb3903d692aa94f63a
parent6a119eae942c51ccf1091936c534bac12cae630e
powerpc/mm: Don't hardcode page table size

pte and pmd table size are dependent on config items. Don't
hard code the same. This make sure we use the right value
when masking pmd entries and also while checking pmd_bad

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/hash-64k.h
arch/powerpc/include/asm/nohash/64/pgtable-64k.h
arch/powerpc/include/asm/pgalloc-64.h
arch/powerpc/mm/init_64.c