diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-01-17 10:08:32 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-02 16:23:26 -0500 |
commit | e399b1a4e1d205bdc816cb550d2064f2eb1ddc4c (patch) | |
tree | cf31e0aeafd972a8ea417dca1ff66c1e0315c907 /arch/arm/include/asm/cacheflush.h | |
parent | 000d9c78eb5cd7f18e3d6a381d66e606bc9b8196 (diff) |
ARM: v6k: introduce CPU_V6K option
Introduce a CPU_V6K configuration option for platforms to select if they
have a V6K CPU core. This allows us to identify whether we need to
support ARMv6 CPUs without the V6K SMP extensions at build time.
Currently CPU_V6K is just an alias for CPU_V6, and all places which
reference CPU_V6 are replaced by (CPU_V6 || CPU_V6K).
Select CPU_V6K from platforms which are known to be V6K-only.
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
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.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h index 3acd8fa25e34..7d0614f599a7 100644 --- a/arch/arm/include/asm/cacheflush.h +++ b/arch/arm/include/asm/cacheflush.h | |||
@@ -116,7 +116,7 @@ | |||
116 | # define MULTI_CACHE 1 | 116 | # define MULTI_CACHE 1 |
117 | #endif | 117 | #endif |
118 | 118 | ||
119 | #if defined(CONFIG_CPU_V6) | 119 | #if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) |
120 | //# ifdef _CACHE | 120 | //# ifdef _CACHE |
121 | # define MULTI_CACHE 1 | 121 | # define MULTI_CACHE 1 |
122 | //# else | 122 | //# else |
@@ -316,7 +316,8 @@ extern void copy_to_user_page(struct vm_area_struct *, struct page *, | |||
316 | * Optimized __flush_icache_all for the common cases. Note that UP ARMv7 | 316 | * Optimized __flush_icache_all for the common cases. Note that UP ARMv7 |
317 | * will fall through to use __flush_icache_all_generic. | 317 | * will fall through to use __flush_icache_all_generic. |
318 | */ | 318 | */ |
319 | #if (defined(CONFIG_CPU_V7) && defined(CONFIG_CPU_V6)) || \ | 319 | #if (defined(CONFIG_CPU_V7) && \ |
320 | (defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K))) || \ | ||
320 | defined(CONFIG_SMP_ON_UP) | 321 | defined(CONFIG_SMP_ON_UP) |
321 | #define __flush_icache_preferred __cpuc_flush_icache_all | 322 | #define __flush_icache_preferred __cpuc_flush_icache_all |
322 | #elif __LINUX_ARM_ARCH__ >= 7 && defined(CONFIG_SMP) | 323 | #elif __LINUX_ARM_ARCH__ >= 7 && defined(CONFIG_SMP) |