powerpc/32s: Cleanup around PTE_FLAGS_OFFSET in hash_low.S
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 24 Nov 2020 19:51:57 +0000 (19:51 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 9 Dec 2020 12:48:14 +0000 (23:48 +1100)
commitda481c4fe0e485cdab5cf4d2761be8b8fb38d3d1
tree88463da95649927e886d2267bd6a86c00987e848
parentfec6166b44ded68e68144144a02e498580118f1a
powerpc/32s: Cleanup around PTE_FLAGS_OFFSET in hash_low.S

PTE_FLAGS_OFFSET is defined in asm/page_32.h and used only
in hash_low.S

And PTE_FLAGS_OFFSET nullity depends on CONFIG_PTE_64BIT

Instead of tests like #if (PTE_FLAGS_OFFSET != 0), use
CONFIG_PTE_64BIT related code.

Also move the definition of PTE_FLAGS_OFFSET into hash_low.S
directly, that improves readability.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/f5bc21db7a33dab55924734e6060c2e9daed562e.1606247495.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/page_32.h
arch/powerpc/mm/book3s32/hash_low.S