Skip to content

Commit 910a17e

Browse files
kirylRussell King
authored andcommitted
ARM: 5700/1: ARM: Introduce ARM_L1_CACHE_SHIFT to define cache line size
Currently kernel believes that all ARM CPUs have L1_CACHE_SHIFT == 5. It's not true at least for CPUs based on Cortex-A8. List of CPUs with cache line size != 32 should be expanded later. Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 59fcf48 commit 910a17e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎arch/arm/include/asm/cache.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#ifndef __ASMARM_CACHE_H
55
#define __ASMARM_CACHE_H
66

7-
#define L1_CACHE_SHIFT 5
7+
#define L1_CACHE_SHIFT CONFIG_ARM_L1_CACHE_SHIFT
88
#define L1_CACHE_BYTES (1 << L1_CACHE_SHIFT)
99

1010
/*

‎arch/arm/mm/Kconfig‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,3 +771,8 @@ config CACHE_XSC3L2
771771
select OUTER_CACHE
772772
help
773773
This option enables the L2 cache on XScale3.
774+
775+
config ARM_L1_CACHE_SHIFT
776+
int
777+
default 6 if ARCH_OMAP3
778+
default 5

0 commit comments

Comments
 (0)