From: Catalin Marinas Date: Tue, 7 Dec 2010 15:56:29 +0000 (+0100) Subject: ARM: 6528/1: Use CTR for the I-cache line size on ARMv7 X-Git-Tag: v2.6.37-rc6~12^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da30e0ac0f9a521f0cfec8145ddd1ad131f66d61;p=pandora-kernel.git ARM: 6528/1: Use CTR for the I-cache line size on ARMv7 The current implementation of the v7_coherent_*_range function assumes that the D and I cache lines have the same size, which is incorrect architecturally. This patch adds the icache_line_size macro which reads the CTR register. The main loop in v7_coherent_*_range is split in two independent loops or the D and I caches. This also has the performance advantage that the DSB is moved outside the main loop. Reported-by: Kevin Sapp Signed-off-by: Catalin Marinas Signed-off-by: Russell King --- Reading git-diff-tree failed