]> 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)
commit42018739b289124112b4280ea03e38d4b5834892
treeb41072b6c178770a81cd639a890ce7c7aa58dab7
parent112d5299c40947d90abad9a82e098ec444669c21
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