Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ARM] Use CPU_CACHE_* where possible in asm/cacheflush.h

Three of the generic cache method options were using explicit CPU
types, whereas they could use the CPU_CACHE_* definitions instead.
Switch them over to use the CPU_CACHE_* definitions.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Russell King and committed by
Russell King
6cc7cbef 6b237a35

+3 -5
+3 -5
include/asm-arm/cacheflush.h
··· 25 25 #undef _CACHE 26 26 #undef MULTI_CACHE 27 27 28 - #if defined(CONFIG_CPU_ARM610) || defined(CONFIG_CPU_ARM710) || \ 29 - defined(CONFIG_CPU_ARM740T) 28 + #if defined(CONFIG_CPU_CACHE_V3) 30 29 # ifdef _CACHE 31 30 # define MULTI_CACHE 1 32 31 # else ··· 33 34 # endif 34 35 #endif 35 36 36 - #if defined(CONFIG_CPU_ARM720T) || defined(CONFIG_CPU_ARM7TDMI) || \ 37 - defined(CONFIG_CPU_ARM9TDMI) 37 + #if defined(CONFIG_CPU_CACHE_V4) 38 38 # ifdef _CACHE 39 39 # define MULTI_CACHE 1 40 40 # else ··· 70 72 # endif 71 73 #endif 72 74 73 - #if defined(CONFIG_CPU_SA110) || defined(CONFIG_CPU_SA1100) 75 + #if defined(CONFIG_CPU_CACHE_V4WB) 74 76 # ifdef _CACHE 75 77 # define MULTI_CACHE 1 76 78 # else