]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6527/1: Use CTR instead of CCSIDR for the D-cache line size on ARMv7
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 7 Dec 2010 15:52:04 +0000 (16:52 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 12 Dec 2010 23:25:58 +0000 (23:25 +0000)
commitbd0994f915a4fe0a0f721f461955a602764e41be
treea1e7a0083a3866264331abfc1da8526a35523af0
parent4179f42bb42d394a3045d6bc3151c626281bcb5f
ARM: 6527/1: Use CTR instead of CCSIDR for the D-cache line size on ARMv7

The current implementation of the dcache_line_size macro reads the L1
cache size from the CCSIDR register. This, however, is not guaranteed to
be the smallest cache line in the cache hierarchy. The patch changes to
the macro to use the more architecturally correct CTR register.

Reported-by: Kevin Sapp <ksapp@quicinc.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/proc-macros.S