powerpc/mm: move update_mmu_cache() into book3s hash utils.
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 16 Aug 2019 05:41:42 +0000 (05:41 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 20 Aug 2019 11:22:14 +0000 (21:22 +1000)
commite5a1edb9fe4cfa07e37a59475f8f7d0a8939c73e
tree0aa808ab84e1ecdf92dd81bbef0649b38fe3bb2d
parent4c1616ef036ffaaea95a29d7b6abf9d3e8eb9d92
powerpc/mm: move update_mmu_cache() into book3s hash utils.

update_mmu_cache() is only for BOOK3S, and can be simplified for
BOOK3S32.

Move it out of mem.c into respective BOOK3S32 and BOOK3S64 files
containing hash utils.

BOOK3S64 version of hash_preload() is only used locally, declare it
static.

Remove the radix_enabled() stuff in BOOK3S32 version.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/107aaf43583a5f5d09e0d4e84c4c4390ecfcd512.1565933217.git.christophe.leroy@c-s.fr
arch/powerpc/mm/book3s32/mmu.c
arch/powerpc/mm/book3s64/hash_utils.c
arch/powerpc/mm/mem.c
arch/powerpc/mm/mmu_decl.h