Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 6139/1: ARMv7: Use the Inner Shareable I-cache on MP

This patch fixes the flush_cache_all for ARMv7 SMP.It was
missing from commit b8349b569aae661dea9d59d7d2ee587ccea3336c

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: <stable@kernel.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Santosh Shilimkar and committed by
Russell King
a901ff71 e1695307

+4
+4
arch/arm/mm/cache-v7.S
··· 91 91 THUMB( stmfd sp!, {r4-r7, r9-r11, lr} ) 92 92 bl v7_flush_dcache_all 93 93 mov r0, #0 94 + #ifdef CONFIG_SMP 95 + mcr p15, 0, r0, c7, c1, 0 @ invalidate I-cache inner shareable 96 + #else 94 97 mcr p15, 0, r0, c7, c5, 0 @ I+BTB cache invalidate 98 + #endif 95 99 ARM( ldmfd sp!, {r4-r5, r7, r9-r11, lr} ) 96 100 THUMB( ldmfd sp!, {r4-r7, r9-r11, lr} ) 97 101 mov pc, lr