]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/hash: Don't memset pgd table if not needed
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 26 Mar 2018 10:04:50 +0000 (15:34 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 30 Mar 2018 13:10:39 +0000 (00:10 +1100)
commit10b344222f90c880067984948b56e1f13697dd29
tree4fe12a018c17f1b2e8917ee8b200ba8e0570c0b1
parenta76a7c436c5c5bdccc5d87272831dcd12d1ff34b
powerpc/mm/hash: Don't memset pgd table if not needed

We need to zero-out pgd table only if we share the slab cache with
pud/pmd level caches. With the support of 4PB, we don't share the slab
cache anymore. Instead of removing the code completely hide it within
an #ifdef. We don't need to do this with any other page table level,
because they all allocate table of double the size and we take of
initializing the first half corrrectly during page table zap.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
[mpe: Consolidate multiple #if / #ifdef into one]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/pgalloc.h