ARM: 7693/1: mm: clean-up in order to reduce to call kmap_high_get()
In kmap_atomic(), kmap_high_get() is invoked for checking already mapped area. In __flush_dcache_page() and dma_cache_maint_page(), we explicitly call kmap_high_get() before kmap_atomic() when cache_is_vipt(), so kmap_high_get() can be invoked twice. This is useless operation, so remove one. v2: change cache_is_vipt() to cache_is_vipt_nonaliasing() in order to be self-documented Change-Id: I36e5a63fdae158d9e7562f564f7e593b351f6960 Acked-by:Nicolas Pitre <nico@linaro.org> Signed-off-by:
Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by:
Russell King <rmk+kernel@arm.linux.org.uk> Git-commit: dd0f67f4 Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/ [Few merge conflict resolved] Signed-off-by:
Chintan Pandya <cpandya@codeaurora.org> Signed-off-by:
Sridhar Gujje <sgujje@codeaurora.org>
Loading
Please sign in to comment