aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/cacheflush.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-01-23 08:04:53 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-02-02 16:23:33 -0500
commit774c096bf9e49eebf7b5d2d9fdddf632c29ccea0 (patch)
tree0189d866c91a8d8ca8bd574c17c6c65284594880 /arch/arm/include/asm/cacheflush.h
parent3bc28c8edc4f5f78d9ec23fb0f20df29b7b3a072 (diff)
ARM: v6/v7 cache: allow cache calls to be optimized
The v6 cache call optimization was disabled to allow the optional block cache operations to be subsituted on CPUs which supported those operations. However, as that functionality was removed, we no longer need to prevent this optimization being taken advantage of. The v7 cache call optimization was just a copy of the v6, so also fix that too. Tested-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/cacheflush.h')
-rw-r--r--arch/arm/include/asm/cacheflush.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h
index 7d0614f599a7..d9b4c42d62ff 100644
--- a/arch/arm/include/asm/cacheflush.h
+++ b/arch/arm/include/asm/cacheflush.h
@@ -116,20 +116,20 @@
116# define MULTI_CACHE 1 116# define MULTI_CACHE 1
117#endif 117#endif
118 118
119#if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) 119#if defined(CONFIG_CPU_CACHE_V6)
120//# ifdef _CACHE 120# ifdef _CACHE
121# define MULTI_CACHE 1 121# define MULTI_CACHE 1
122//# else 122# else
123//# define _CACHE v6 123# define _CACHE v6
124//# endif 124# endif
125#endif 125#endif
126 126
127#if defined(CONFIG_CPU_V7) 127#if defined(CONFIG_CPU_CACHE_V7)
128//# ifdef _CACHE 128# ifdef _CACHE
129# define MULTI_CACHE 1 129# define MULTI_CACHE 1
130//# else 130# else
131//# define _CACHE v7 131# define _CACHE v7
132//# endif 132# endif
133#endif 133#endif
134 134
135#if !defined(_CACHE) && !defined(MULTI_CACHE) 135#if !defined(_CACHE) && !defined(MULTI_CACHE)