]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
arm64: barriers: add dmb barrier
authorWill Deacon <will.deacon@arm.com>
Mon, 10 Mar 2014 10:36:52 +0000 (10:36 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 10 Mar 2014 11:57:40 +0000 (11:57 +0000)
Commit 8adbf57fc429 ("irqchip: gic: use dmb ishst instead of dsb when
raising a softirq") added an explicit dmb(...) call to the GIC driver.

This patch adds a simple dmb() macro to arm64, which expands to a DMB SY
instruction.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/barrier.h

index 409ca370cfe2ddccd245efc3f3b0a20fe2360d49..66eb7648043bc9c1ba6383b0e2187a74c8dc8d5c 100644 (file)
@@ -25,6 +25,7 @@
 #define wfi()          asm volatile("wfi" : : : "memory")
 
 #define isb()          asm volatile("isb" : : : "memory")
+#define dmb(opt)       asm volatile("dmb sy" : : : "memory")
 #define dsb(opt)       asm volatile("dsb sy" : : : "memory")
 
 #define mb()           dsb()