diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-01-04 10:11:00 +0000 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-01-05 08:59:48 +0100 |
commit | 98a8883ad419128493b8cfab3982d58785deabda (patch) | |
tree | cfb8d888c0957c543090829e4b9eabad758ba90e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 6984128d01cf935820a0563f3a00c6623ba58109 (diff) |
drm: Only bump object-reference count when adding first handle
We only need a single reference count for all handles (i.e. non-zero
obj->handle_count) and so can trim a few atomic operations by only
taking the reference on the first handle and dropping it after the last.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1451902261-25380-2-git-send-email-chris@chris-wilson.co.uk
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions