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
Showing
- arch/powerpc/mm/book3s32/mmu.c 46 additions, 0 deletionsarch/powerpc/mm/book3s32/mmu.c
- arch/powerpc/mm/book3s64/hash_utils.c 53 additions, 2 deletionsarch/powerpc/mm/book3s64/hash_utils.c
- arch/powerpc/mm/mem.c 0 additions, 52 deletionsarch/powerpc/mm/mem.c
- arch/powerpc/mm/mmu_decl.h 3 additions, 4 deletionsarch/powerpc/mm/mmu_decl.h
Please register or sign in to comment