Searched hist:aa8c09be7a6f58e1b0dd19413d872fffdb054677 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/arm64/mm/ |
H A D | mmu.c | diff aa8c09be7a6f58e1b0dd19413d872fffdb054677 Thu Mar 09 14:52:00 CST 2017 Ard Biesheuvel <ard.biesheuvel@linaro.org> arm64: mmu: move TLB maintenance from callers to create_mapping_late()
In preparation of refactoring the kernel mapping logic so that text regions are never mapped writable, which would require adding explicit TLB maintenance to new call sites of create_mapping_late() (which is currently invoked twice from the same function), move the TLB maintenance from the call site into create_mapping_late() itself, and change it from a full TLB flush into a flush by VA, which is more appropriate here.
Also, given that create_mapping_late() has evolved into a routine that only updates protection bits on existing mappings, rename it to update_mapping_prot()
Reviewed-by: Mark Rutland <mark.rutland@arm.com> Tested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
|