]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm: Drop PTE_ATOMIC_UPDATES from pmd_hugepage_update()
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Fri, 29 Apr 2016 13:25:26 +0000 (23:25 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 1 May 2016 08:32:15 +0000 (18:32 +1000)
commit90e75de8994c6ffda58e6a3a47e3f9c5d7af847d
treedc39f7fe2b06efb554e80827aec8f2ee81dec47c
parentca1f778ec438970aebdc409fbe4eaa62fa52c42f
powerpc/mm: Drop PTE_ATOMIC_UPDATES from pmd_hugepage_update()

pmd_hugepage_update() is inside #ifdef CONFIG_TRANSPARENT_HUGEPAGE. THP
can only be enabled if PPC_BOOK3S_64=y && PPC_64K_PAGES=y, aka. hash64.

On hash64 we always define PTE_ATOMIC_UPDATES to 1, meaning the #ifdef
in pmd_hugepage_update() is unnecessary, so drop it.

That is also the only use of PTE_ATOMIC_UPDATES in any of the hash code,
meaning we no longer need to #define it at all in the hash headers.

Note it's still #defined and used in the nohash code.

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/32/hash.h
arch/powerpc/include/asm/book3s/64/hash.h
arch/powerpc/mm/pgtable_64.c