diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-08-06 10:59:46 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-08-07 02:07:17 +0200 |
commit | 7fc65eb731cda8304865669166fb9a4c519bee69 (patch) | |
tree | eeeff7e07e01ccdef46a1f2b6c82c9624f53acb0 /include/drm/drm_mm.h | |
parent | drm/gem: create drm_gem_dumb_destroy (diff) | |
download | linux-7fc65eb731cda8304865669166fb9a4c519bee69.tar.xz linux-7fc65eb731cda8304865669166fb9a4c519bee69.zip |
drm: Apply kref_put_mutex() optimisations to drm_gem_object_unreference_unlocked()
We can apply the same optimisation tricks as kref_put_mutex() in our
local equivalent function. However, we have a different locking semantic
(we unlock ourselves, in kref_put_mutex() the callee unlocks) so that we
can use the same callbacks for both locked and unlocked kref_put()s and
so can not simply convert to using kref_put_mutex() directly.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_mm.h')
0 files changed, 0 insertions, 0 deletions