]> git.karo-electronics.de Git - mv-sheeva.git/commit
ARM: 6380/1: Introduce __sync_icache_dcache() for VIPT caches
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 13 Sep 2010 14:58:06 +0000 (15:58 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 19 Sep 2010 11:17:44 +0000 (12:17 +0100)
commit6012191aa9c6ffff3a23b81162298318b56d7cb3
tree8f08d869b452d66f126743bcfd73aa6f5a701605
parentc01778001a4f5ad9c62d882776235f3f31922fdd
ARM: 6380/1: Introduce __sync_icache_dcache() for VIPT caches

On SMP systems, there is a small chance of a PTE becoming visible to a
different CPU before the current cache maintenance operations in
update_mmu_cache(). To avoid this, cache maintenance must be handled in
set_pte_at() (similar to IA-64 and PowerPC).

This patch provides a unified VIPT cache handling mechanism and
implements the __sync_icache_dcache() function for ARMv6 onwards
architectures. It is called from set_pte_at() and replaces the
update_mmu_cache(). The latter is still used on VIVT hardware where a
vm_area_struct is required.

Tested-by: Rabin Vincent <rabin.vincent@stericsson.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/pgtable.h
arch/arm/include/asm/tlbflush.h
arch/arm/mm/fault-armv.c
arch/arm/mm/flush.c