ARM: 7957/1: add DSB after icache flush in __flush_icache_all()
authorVinayak Kale <vkale@apm.com>
Wed, 12 Feb 2014 06:30:01 +0000 (07:30 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 1 Apr 2014 23:58:53 +0000 (00:58 +0100)
commit 39544ac9df20f73e49fc6b9ac19ff533388c82c0 upstream.

Add DSB after icache flush to complete the cache maintenance operation.

Signed-off-by: Vinayak Kale <vkale@apm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/arm/include/asm/cacheflush.h

index 1397408541bb284c3d318dc95a8a92f1bfe12f64..b1e0e0752c92034f84d544efcac0411ce96b2b03 100644 (file)
@@ -202,6 +202,7 @@ extern void copy_to_user_page(struct vm_area_struct *, struct page *,
 static inline void __flush_icache_all(void)
 {
        __flush_icache_preferred();
+       dsb();
 }
 
 #define flush_cache_all()              __cpuc_flush_kern_all()