diff options
| author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-18 15:37:21 +0000 |
|---|---|---|
| committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-18 16:18:53 +0000 |
| commit | 69df05e11ab8c10e57bb5aaaa3e6d3d1b251b333 (patch) | |
| tree | 3379ae73970f6d9f492db95994179a8f3e6b356f /tools/perf/scripts/python | |
| parent | drm/i915: Unify active context tracking between legacy/execlists/guc (diff) | |
| download | linux-69df05e11ab8c10e57bb5aaaa3e6d3d1b251b333.tar.gz linux-69df05e11ab8c10e57bb5aaaa3e6d3d1b251b333.zip | |
drm/i915: Simplify releasing context reference
A few users only take the struct_mutex in order to release a reference
to a context. We can expose a kref_put_mutex() wrapper in order to
simplify these users, and optimise taking of the mutex to the final
unref.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161218153724.8439-4-chris@chris-wilson.co.uk
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
