]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.4.83/arm-7957-1-add-dsb-after-icache-flush-in-__flush_icache_all.patch
Linux 3.4.83
[thirdparty/kernel/stable-queue.git] / releases / 3.4.83 / arm-7957-1-add-dsb-after-icache-flush-in-__flush_icache_all.patch
1 From 39544ac9df20f73e49fc6b9ac19ff533388c82c0 Mon Sep 17 00:00:00 2001
2 From: Vinayak Kale <vkale@apm.com>
3 Date: Wed, 12 Feb 2014 07:30:01 +0100
4 Subject: ARM: 7957/1: add DSB after icache flush in __flush_icache_all()
5
6 From: Vinayak Kale <vkale@apm.com>
7
8 commit 39544ac9df20f73e49fc6b9ac19ff533388c82c0 upstream.
9
10 Add DSB after icache flush to complete the cache maintenance operation.
11
12 Signed-off-by: Vinayak Kale <vkale@apm.com>
13 Acked-by: Catalin Marinas <catalin.marinas@arm.com>
14 Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16
17 ---
18 arch/arm/include/asm/cacheflush.h | 1 +
19 1 file changed, 1 insertion(+)
20
21 --- a/arch/arm/include/asm/cacheflush.h
22 +++ b/arch/arm/include/asm/cacheflush.h
23 @@ -202,6 +202,7 @@ extern void copy_to_user_page(struct vm_
24 static inline void __flush_icache_all(void)
25 {
26 __flush_icache_preferred();
27 + dsb();
28 }
29
30 #define flush_cache_all() __cpuc_flush_kern_all()