]> git.baikalelectronics.ru Git - kernel.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)
commit0fae1e9e9a845e9894f3077f32c24ae1a282cd2f
treeb41072b6c178770a81cd639a890ce7c7aa58dab7
parent999cfd172d293f6037441c2ed73ed6f5956d09fa
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