diff options
author | Daniel Mack <[email protected]> | 2018-04-10 19:35:58 +0200 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2018-04-19 19:22:43 +0300 |
commit | 9ff6fde86fd27a0c733c01114eb0d46bd3a33fb7 (patch) | |
tree | aa54bac9457e49aabcb6bb0928eb7fbb85e1ca0e /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 6da2b2d46ff937edc3ecea0a36d92252981d033a (diff) |
wcn36xx: use READ_ONCE() to access desc->ctrl
When accessing shared memory to check for the stat of submitted
descriptors, make sure to use READ_ONCE(). This will guarantee the
compiler treats these memory locations as volatile and doesn't apply
any caching.
While this doesn't fix any particular problem I ran into, it's best
practice to do it this way.
Note that this patch also removes the superflous extra condition check
in the do-while loop in reap_tx_dxes(), as the loop will break
instantly anyway in that case.
Signed-off-by: Daniel Mack <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions