ARM: 7693/1: mm: clean-up in order to reduce to call kmap_high_get()
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>
Fri, 5 Apr 2013 02:16:14 +0000 (03:16 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 17 Apr 2013 15:55:01 +0000 (16:55 +0100)
commitdd0f67f4747797f36f0c6bab7fed6a1f2448476d
tree7da151104d3de9b2848f8e05d1764587760cb6b7
parentae8a8b9553bd3906af74ff4e8d763904d20ab4e5
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

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>
arch/arm/mm/dma-mapping.c
arch/arm/mm/flush.c
This page took 0.024562 seconds and 5 git commands to generate.