summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2014-02-06 11:30:48 +0000
committerChanho Park <chanho61.park@samsung.com>2014-04-16 21:36:45 +0900
commit0fd7baf399c28e35784c91fef90a5f6b722b0a39 (patch)
tree7a1d407c11e94fae458edc44476463961f145364
parentbda1e64a8e8ebebfbb6e770f0f9647cc4f91cd8f (diff)
downloadlinux-3.10-0fd7baf399c28e35784c91fef90a5f6b722b0a39.tar.gz
linux-3.10-0fd7baf399c28e35784c91fef90a5f6b722b0a39.tar.bz2
linux-3.10-0fd7baf399c28e35784c91fef90a5f6b722b0a39.zip
arm64: barriers: allow dsb macro to take option parameter
The dsb instruction takes an option specifying both the target access types and shareability domain. This patch allows such an option to be passed to the dsb macro, resulting in potentially more efficient code. Currently the option is ignored until all callers are updated (unlike ARM, the option is mandated by the assembler). Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r--arch/arm64/include/asm/barrier.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/barrier.h b/arch/arm64/include/asm/barrier.h
index d4a63338a53..60ac8661bee 100644
--- a/arch/arm64/include/asm/barrier.h
+++ b/arch/arm64/include/asm/barrier.h
@@ -25,7 +25,7 @@
#define wfi() asm volatile("wfi" : : : "memory")
#define isb() asm volatile("isb" : : : "memory")
-#define dsb() asm volatile("dsb sy" : : : "memory")
+#define dsb(opt) asm volatile("dsb sy" : : : "memory")
#define mb() dsb()
#define rmb() asm volatile("dsb ld" : : : "memory")