diff options
| author | Sinan Kaya <okaya@codeaurora.org> | 2018-03-25 10:39:20 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-03-26 12:47:56 -0400 |
| commit | fd141fa47c03018aa1f77c335b0f444493e145d5 (patch) | |
| tree | 5415abb0dde7f4757078fe748387d992c2ab5203 /tools/perf/scripts/python | |
| parent | net: qlge: Eliminate duplicate barriers on weakly-ordered archs (diff) | |
| download | linux-fd141fa47c03018aa1f77c335b0f444493e145d5.tar.gz linux-fd141fa47c03018aa1f77c335b0f444493e145d5.zip | |
bnxt_en: Eliminate duplicate barriers on weakly-ordered archs
Code includes wmb() 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 wmb().
Since code already has an explicit barrier call, changing writel() to
writel_relaxed().
Also add mmiowb() so that write code doesn't move outside of scope.
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
