diff options
| author | Chris Wilson <[email protected]> | 2016-04-13 17:35:03 +0100 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2016-04-14 10:45:40 +0100 |
| commit | c19ae989b0245ed011fe403b7c4a216e35765c0f (patch) | |
| tree | aa2a975bdbbaebcfb2963d73267b3e568f0427e1 /tools/perf/scripts | |
| parent | d501b1d2b19d87f216510fcf12b1b56b3c4545ef (diff) | |
drm/i915: Hide the atomic_read(reset_counter) behind a helper
This is principally a little bit of syntatic sugar to hide the
atomic_read()s throughout the code to retrieve the current reset_counter.
It also provides the other utility functions to check the reset state on the
already read reset_counter, so that (in later patches) we can read it once
and do multiple tests rather than risk the value changing between tests.
v2: Be more strict on converting existing i915_reset_in_progress() over to
the more verbose i915_reset_in_progress_or_wedged().
Signed-off-by: Chris Wilson <[email protected]>
Cc: Daniel Vetter <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions