arm: asm/cache.c: Introduce arm_reserve_mmu
authorOvidiu Panait <ovpanait@gmail.com>
Sun, 29 Mar 2020 17:57:40 +0000 (20:57 +0300)
committerTom Rini <trini@konsulko.com>
Fri, 24 Apr 2020 19:17:14 +0000 (15:17 -0400)
commit6184858b859f6fcea4b23f76cfb7988882a3c8a7
tree011ee92b2d1c7bdea474824ef1c7d838717c421b
parent586b15bce82a2161dbe71991c14c8c36f5683033
arm: asm/cache.c: Introduce arm_reserve_mmu

As a preparation for turning reserve_mmu into an arch-specific variant,
introduce arm_reserve_mmu on ARM. It implements the default routine for
reserving memory for MMU TLB and needs to be weakly defined in order to allow
for machines to override it.

Without this decoupling, after introducing arch_reserve_mmu, there would be two
weak definitions for it, one in common/board_f.c and one in
arch/arm/lib/cache.c.

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/cache.h
arch/arm/lib/cache.c
arch/arm/mach-versal/cpu.c
arch/arm/mach-zynqmp/cpu.c