ARM: Improve the L2 cache performance when PL310 is used
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 29 Mar 2010 12:58:11 +0000 (13:58 +0100)
committerColin Cross <ccross@android.com>
Mon, 4 Oct 2010 06:08:58 +0000 (23:08 -0700)
commit4c8d736fa77c7bd86949f38153bf3ca2890a89c3
treea4149e05339a65139c4b21d231a14bac70e814bf
parent1512cef47070413a175399c73c5f3636e4902162
ARM: Improve the L2 cache performance when PL310 is used

With this L2 cache controller, the cache maintenance by PA and sync
operations are atomic and do not require a "wait" loop or spinlocks.
This patch conditionally defines the cache_wait() function and locking
primitives (rather than duplicating the functions or file).

Since L2x0 cache controllers do not work with ARMv7 CPUs, the patch
automatically enables CACHE_PL310 when CPU_V7 is defined.

Change-Id: I23e8fc326e6c42e7b36c7b67393fa91576692b48
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/mm/Kconfig
arch/arm/mm/cache-l2x0.c