aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSinan Kaya <[email protected]>2018-03-25 14:39:21 +0000
committerDavid S. Miller <[email protected]>2018-03-26 16:47:56 +0000
commit6d2e1a8d5e25e5f4563f5ea24bcb5da1ae261b26 (patch)
treedd2b5acaa6a1c2a12456ffc5aa546f707f1a91ee /net/unix/af_unix.c
parentbnxt_en: Eliminate duplicate barriers on weakly-ordered archs (diff)
downloadkernel-6d2e1a8d5e25e5f4563f5ea24bcb5da1ae261b26.tar.gz
kernel-6d2e1a8d5e25e5f4563f5ea24bcb5da1ae261b26.zip
net: ena: Eliminate duplicate barriers on weakly-ordered archs
Code includes barrier() followed by writel(). writel() already has a barrier on some architectures like arm64. This ends up CPU observing two barriers back to back before executing the register write. Create a new wrapper function with relaxed write operator. Use the new wrapper when a write is following a barrier(). Since code already has an explicit barrier call, changing writel() to writel_relaxed() and adding mmiowb() for ordering protection. Signed-off-by: Sinan Kaya <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions