DORMANTno replies

[PATCH] ARM: xscale: Always build the kernel in multi cache model mode

From: Dave Martin <hidden>
Date: 2011-07-07 13:44:05
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

xscale defines an alternate set of cache functions including a
workaround which is required for certain processor revisions.

If a single cache model kernel is built, cache maintenance
operations may be statically resolved to the wrong functions,
resulting in incorrect cache maintenance for those processor
revisions which require the workaround.

This patch unconditionally defines MULTI_CACHE for xscale, so that
the correct cache functions will get called at runtime (as already
done for feroceon).

Signed-off-by: Dave Martin <redacted>
---
 arch/arm/include/asm/glue-cache.h |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/arch/arm/include/asm/glue-cache.h b/arch/arm/include/asm/glue-cache.h
index 7e30874..51bb184 100644
--- a/arch/arm/include/asm/glue-cache.h
+++ b/arch/arm/include/asm/glue-cache.h
@@ -82,11 +82,7 @@
 #endif
 
 #if defined(CONFIG_CPU_XSCALE)
-# ifdef _CACHE
-#  define MULTI_CACHE 1
-# else
-#  define _CACHE xscale
-# endif
+# define MULTI_CACHE 1
 #endif
 
 #if defined(CONFIG_CPU_XSC3)
-- 
1.7.4.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help