diff options
author | Chris Wilson <[email protected]> | 2016-04-09 10:57:57 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2016-04-09 12:09:59 +0100 |
commit | 5dd8e50c27cd9294e53fc4c4b25b86abc469a4d4 (patch) | |
tree | fe72b3bbc91993e5bf14bf5e3475746b941d079d /tools/perf/scripts/python/sctop.py | |
parent | 0d317ce99e226a338fe0962e711795c6a8ed2cb2 (diff) |
drm/i915: Replace manual barrier() with READ_ONCE() in HWS accessor
When reading from the HWS page, we use barrier() to prevent the compiler
optimising away the read from the volatile (may be updated by the GPU)
memory address. This is more suited to READ_ONCE(); make it so.
Signed-off-by: Chris Wilson <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Reviewed-by: Mika Kuoppala <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions