[RFC] ARM: increase L1_CACHE_SHIFT

Aaro Koskinen aaro.koskinen at nokia.com
Fri Aug 28 07:58:15 EDT 2009


Hello,

ARM Cortex-A8 has 64 byte cache line, so the current code is
wrong. This is little worrying if you e.g. read the comments from
eb5f4ca9536ba297c98721ecbbdf41ec5b987bd5.

What would be the proper way to handle this? Should we set it to 64
bytes for everyone, or set it according to some #define or Kconfig option?

---
 arch/arm/include/asm/cache.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/include/asm/cache.h b/arch/arm/include/asm/cache.h
index feaa75f..b786b24 100644
--- a/arch/arm/include/asm/cache.h
+++ b/arch/arm/include/asm/cache.h
@@ -4,7 +4,7 @@
 #ifndef __ASMARM_CACHE_H
 #define __ASMARM_CACHE_H
 
-#define L1_CACHE_SHIFT		5
+#define L1_CACHE_SHIFT		6
 #define L1_CACHE_BYTES		(1 << L1_CACHE_SHIFT)
 
 /*
-- 
1.5.4.3




More information about the linux-arm-kernel mailing list