]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7291/1: cache: assume 64-byte L1 cachelines for ARMv7 CPUs
authorWill Deacon <will.deacon@arm.com>
Fri, 20 Jan 2012 11:01:10 +0000 (12:01 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 23 Jan 2012 10:20:05 +0000 (10:20 +0000)
commitb218619bf9d49ed284310ae19119875cd0ad444e
treeb32be39bb3823afbc01ad5f10774ec6a13c30934
parenta33ba5bbdc8534f3aaf17586f3b321638433d447
ARM: 7291/1: cache: assume 64-byte L1 cachelines for ARMv7 CPUs

To ensure correct alignment of cacheline-aligned data, the maximum
cacheline size needs to be known at compile time.

Since Cortex-A8 and Cortex-A15 have 64-byte cachelines (and it is likely
that there will be future ARMv7 implementations with the same line size)
then it makes sense to assume that CPU_V7 implies a 64-byte L1 cacheline
size. For CPUs with smaller caches, this will result in some harmless
padding but will help with single zImage work and avoid hitting subtle
bugs with misaligned data structures.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/Kconfig
arch/arm/mach-mx5/Kconfig
arch/arm/mach-omap2/Kconfig
arch/arm/mm/Kconfig