commit | 755bd04aaf4bf7c49ce8aad2677ea4d14271fc46 | [log] [tgz] |
---|---|---|
author | Sinan Kaya <okaya@codeaurora.org> | Thu Apr 05 09:09:11 2018 -0400 |
committer | Arnd Bergmann <arnd@arndb.de> | Fri Apr 06 12:01:56 2018 +0200 |
tree | a0899a14c45441eada77bc04a6ccf8fbec69db13 | |
parent | 032d59e1cde9dd71bb5918e1f6529776623ee86b [diff] |
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>