Do not flush the cache in flush_cache_v(un)map for VIPT caches
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 6 Nov 2008 13:23:08 +0000 (13:23 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 6 Nov 2008 13:23:08 +0000 (13:23 +0000)
commit376e14218d3d791127e9b9bfbe2f99c44c2a19c2
tree227ff719a9b4092a610c51f15a00a599ed072cc5
parent24b647a042b988b017e6cdf60b47a0bfecd1dc41
Do not flush the cache in flush_cache_v(un)map for VIPT caches

In case of non-aliasing VIPT caches, there is no need to flush the whole
cache when new mapping is created. The patch introduces this condition
check. In the non-aliasing VIPT case flush_cache_vmap() needs a DSB
since the set_pte_at() function called from vmap_pte_range() does not
have such barrier (done usually via TLB flushing functions).

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/include/asm/cacheflush.h