diff options
author | Will Deacon <will.deacon@arm.com> | 2014-07-24 20:53:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-29 14:18:45 -0400 |
commit | 9e36c633951acb33e250e75b209b04217ce7b86c (patch) | |
tree | 11fec3ba5450a85ab166751d9ca2be0bf0564383 /arch/alpha | |
parent | 5691e4456a9332b5cdc0692f0963f35444711038 (diff) |
alpha: io: implement relaxed accessor macros for writes
write{b,w,l,q}_relaxed are implemented by some architectures in order to
permit memory-mapped I/O writes with weaker barrier semantics than the
non-relaxed variants.
This patch implements these write macros for Alpha, in the same vein as
the relaxed read macros, which are already implemented.
Acked-by: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/alpha')
-rw-r--r-- | arch/alpha/include/asm/io.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h index 5ebab5895edb..f05bdb4b1cb9 100644 --- a/arch/alpha/include/asm/io.h +++ b/arch/alpha/include/asm/io.h | |||
@@ -500,10 +500,14 @@ extern inline void writeq(u64 b, volatile void __iomem *addr) | |||
500 | #define outb_p outb | 500 | #define outb_p outb |
501 | #define outw_p outw | 501 | #define outw_p outw |
502 | #define outl_p outl | 502 | #define outl_p outl |
503 | #define readb_relaxed(addr) __raw_readb(addr) | 503 | #define readb_relaxed(addr) __raw_readb(addr) |
504 | #define readw_relaxed(addr) __raw_readw(addr) | 504 | #define readw_relaxed(addr) __raw_readw(addr) |
505 | #define readl_relaxed(addr) __raw_readl(addr) | 505 | #define readl_relaxed(addr) __raw_readl(addr) |
506 | #define readq_relaxed(addr) __raw_readq(addr) | 506 | #define readq_relaxed(addr) __raw_readq(addr) |
507 | #define writeb_relaxed(b, addr) __raw_writeb(b, addr) | ||
508 | #define writew_relaxed(b, addr) __raw_writew(b, addr) | ||
509 | #define writel_relaxed(b, addr) __raw_writel(b, addr) | ||
510 | #define writeq_relaxed(b, addr) __raw_writeq(b, addr) | ||
507 | 511 | ||
508 | #define mmiowb() | 512 | #define mmiowb() |
509 | 513 | ||