[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>
This commit is contained in:
committed by
Russell King
parent
6b237a355a
commit
6cc7cbef94
@@ -25,8 +25,7 @@
|
|||||||
#undef _CACHE
|
#undef _CACHE
|
||||||
#undef MULTI_CACHE
|
#undef MULTI_CACHE
|
||||||
|
|
||||||
#if defined(CONFIG_CPU_ARM610) || defined(CONFIG_CPU_ARM710) || \
|
#if defined(CONFIG_CPU_CACHE_V3)
|
||||||
defined(CONFIG_CPU_ARM740T)
|
|
||||||
# ifdef _CACHE
|
# ifdef _CACHE
|
||||||
# define MULTI_CACHE 1
|
# define MULTI_CACHE 1
|
||||||
# else
|
# else
|
||||||
@@ -34,8 +33,7 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_CPU_ARM720T) || defined(CONFIG_CPU_ARM7TDMI) || \
|
#if defined(CONFIG_CPU_CACHE_V4)
|
||||||
defined(CONFIG_CPU_ARM9TDMI)
|
|
||||||
# ifdef _CACHE
|
# ifdef _CACHE
|
||||||
# define MULTI_CACHE 1
|
# define MULTI_CACHE 1
|
||||||
# else
|
# else
|
||||||
@@ -72,7 +70,7 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_CPU_SA110) || defined(CONFIG_CPU_SA1100)
|
#if defined(CONFIG_CPU_CACHE_V4WB)
|
||||||
# ifdef _CACHE
|
# ifdef _CACHE
|
||||||
# define MULTI_CACHE 1
|
# define MULTI_CACHE 1
|
||||||
# else
|
# else
|
||||||
|
Reference in New Issue
Block a user