]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite3919ee751addb8bfb7174354fd694207e678d9f
tree0aa808ab84e1ecdf92dd81bbef0649b38fe3bb2d
parentf344f27c77fd118c7b2eecffe2642a1b8d150c01
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