mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 00:24:58 +08:00
arm64: io: Hook up __io_par() for inX() ordering
Ensure that inX() provides the same ordering guarantees as readX() by hooking up __io_par() so that it maps directly to __iormb(). Reported-by: Andrew Murray <andrew.murray@arm.com> Reviewed-by: Palmer Dabbelt <palmer@sifive.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
parent
ce246c444a
commit
2c97a9cc35
@ -121,6 +121,7 @@ static inline u64 __raw_readq(const volatile void __iomem *addr)
|
|||||||
: "memory"); \
|
: "memory"); \
|
||||||
})
|
})
|
||||||
|
|
||||||
|
#define __io_par(v) __iormb(v)
|
||||||
#define __iowmb() wmb()
|
#define __iowmb() wmb()
|
||||||
|
|
||||||
#define mmiowb() do { } while (0)
|
#define mmiowb() do { } while (0)
|
||||||
|
Loading…
Reference in New Issue
Block a user