]> git.baikalelectronics.ru Git - kernel.git/commit
io: change readX_relaxed() to remove barriers
authorSinan Kaya <okaya@codeaurora.org>
Fri, 6 Apr 2018 18:02:45 +0000 (14:02 -0400)
committerArnd Bergmann <arnd@arndb.de>
Tue, 10 Apr 2018 14:37:21 +0000 (16:37 +0200)
commitda70e871ee0b43677033ff110e4c77ba8be73b06
tree3becfe6342a176e9306179da665bb522d0fd6f3b
parent6687d34150fb19bab63d430518b93cb446f6d0a5
io: change readX_relaxed() to remove barriers

Now that we hardened readX() API in asm-generic version, readX_relaxed()
API is violating the rules when readX_relaxed() == readX() in the default
implementation.

The relaxed API shouldn't have any barriers in it and it doesn't provide
any ordering with respect to the memory transactions. The only requirement
is for reads to be ordered with respect to each other. This is achieved
by the volatile in the __raw_readX() API.

Open code the relaxed API and remove any barriers in it.

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