DORMANTno replies REVIEWED: 3 (3M)

[PATCH RESEND] arm: add DSB after icache flush in __flush_icache_all()

From: Vinayak Kale <hidden>
Date: 2014-02-12 06:30:20
Also in: lkml, stable
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

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

Signed-off-by: Vinayak Kale <redacted>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: <redacted>
---
KernelVersion: 3.14-rc1

PS:
- This patch is tested for ARM-v7.

 arch/arm/include/asm/cacheflush.h |    1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h
index ee753f1..ab91ebb 100644
--- a/arch/arm/include/asm/cacheflush.h
+++ b/arch/arm/include/asm/cacheflush.h
@@ -212,6 +212,7 @@ extern void copy_to_user_page(struct vm_area_struct *, struct page *,
 static inline void __flush_icache_all(void)
 {
 	__flush_icache_preferred();
+	dsb();
 }
 
 /*
-- 
1.7.9.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help