io: define stronger ordering for the default writeX() implementation
authorSinan Kaya <okaya@codeaurora.org>
Thu, 5 Apr 2018 13:09:11 +0000 (09:09 -0400)
committerArnd Bergmann <arnd@arndb.de>
Fri, 6 Apr 2018 10:01:56 +0000 (12:01 +0200)
commit755bd04aaf4bf7c49ce8aad2677ea4d14271fc46
treea0899a14c45441eada77bc04a6ccf8fbec69db13
parent032d59e1cde9dd71bb5918e1f6529776623ee86b
io: define stronger ordering for the default writeX() implementation

The default implementation of mapping writeX() to __raw_writeX() is wrong.
writeX() has stronger ordering semantics. Compiler is allowed to reorder
memory writes against __raw_writeX().

Use the previously defined __io_aw() and __io_bw() macros to harden
code generation according to architecture support.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/io.h