]> git.openpandora.org Git - pandora-kernel.git/commitdiff
ARM: add soc memory barrier extension
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 3 Jun 2015 12:10:16 +0000 (13:10 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 25 Jul 2015 14:28:11 +0000 (15:28 +0100)
Add an extension to the heavy barrier code to allow a SoC specific
memory barrier function to be provided.  This is needed for platforms
where the interconnect has weak ordering, and thus needs assistance
to ensure that memory writes are properly visible in the correct order
to other parts of the system.

Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Richard Woodruff <r-woodruff2@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/barrier.h
arch/arm/mm/flush.c

index fea99b0e20878f6170e239aa31c7b3a692d3f5a5..3d8f1d3ad9a76e62f3c3e6ae0e3ba35b4500bfcf 100644 (file)
@@ -37,6 +37,7 @@
 #endif
 
 #ifdef CONFIG_ARM_HEAVY_MB
+extern void (*soc_mb)(void);
 extern void arm_heavy_mb(void);
 #define __arm_heavy_mb(x...) do { dsb(x); arm_heavy_mb(); } while (0)
 #else
Simple merge