]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: cacheflush: add synchronization helpers for mixed cache state accesses
authorNicolas Pitre <nicolas.pitre@linaro.org>
Tue, 23 Apr 2013 20:45:40 +0000 (16:45 -0400)
committerNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 24 Apr 2013 14:36:09 +0000 (10:36 -0400)
commit0c91e7e07ebf08092bf8e28d8cd8d420732fc716
treeb41072b6c178770a81cd639a890ce7c7aa58dab7
parent6210d421c20f12ef4e8c9826973478beb104114d
ARM: cacheflush: add synchronization helpers for mixed cache state accesses

Algorithms used by the MCPM layer rely on state variables which are
accessed while the cache is either active or inactive, depending
on the code path and the active state.

This patch introduces generic cache maintenance helpers to provide the
necessary cache synchronization for such state variables to always hit
main memory in an ordered way.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Dave Martin <dave.martin@linaro.org>
arch/arm/include/asm/cacheflush.h