Skip to content

Commit

Permalink
[ARM] Use CPU_CACHE_* where possible in asm/cacheflush.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King authored and Russell King committed Sep 27, 2006
1 parent 6b237a3 commit 6cc7cbe
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/asm-arm/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,15 @@
#undef _CACHE
#undef MULTI_CACHE

#if defined(CONFIG_CPU_ARM610) || defined(CONFIG_CPU_ARM710) || \
defined(CONFIG_CPU_ARM740T)
#if defined(CONFIG_CPU_CACHE_V3)
# ifdef _CACHE
# define MULTI_CACHE 1
# else
# define _CACHE v3
# endif
#endif

#if defined(CONFIG_CPU_ARM720T) || defined(CONFIG_CPU_ARM7TDMI) || \
defined(CONFIG_CPU_ARM9TDMI)
#if defined(CONFIG_CPU_CACHE_V4)
# ifdef _CACHE
# define MULTI_CACHE 1
# else
Expand Down Expand Up @@ -72,7 +70,7 @@
# endif
#endif

#if defined(CONFIG_CPU_SA110) || defined(CONFIG_CPU_SA1100)
#if defined(CONFIG_CPU_CACHE_V4WB)
# ifdef _CACHE
# define MULTI_CACHE 1
# else
Expand Down

0 comments on commit 6cc7cbe

Please sign in to comment.