]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Add barriers to io{read,write}{8,16,32} accessors as well
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 29 Jul 2010 10:38:05 +0000 (11:38 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 29 Jul 2010 13:04:37 +0000 (14:04 +0100)
commit410657fcb0e2007e5c8bdaadab0ae821ec2aeac5
tree90e686709e31ab7523e4ce730b2c85a930384cf7
parent070c88ced5745cf89a22a23349dcd12d6c143e12
ARM: Add barriers to io{read,write}{8,16,32} accessors as well

The ioread/iowrite accessors also need barriers as they're used in
place of readl/writel et.al. in portable drivers.  Create __iormb()
and __iowmb() which are conditionally defined to be barriers dependent
on ARM_DMA_MEM_BUFFERABLE, and always use these macros in the accessors.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/io.h