]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm: introduce drm_gem_object_[handle_]unreference_unlocked
authorLuca Barbieri <luca@luca-barbieri.com>
Tue, 9 Feb 2010 05:49:11 +0000 (05:49 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Feb 2010 04:21:24 +0000 (14:21 +1000)
commitc3ae90c099bb62387507e86da7cf799850444b08
tree4f546a65e35fddea09a97fbfd28ce724ea86f7c2
parent77c1ff3982c6b36961725dd19e872a1c07df7f3b
drm: introduce drm_gem_object_[handle_]unreference_unlocked

This patch introduces the drm_gem_object_unreference_unlocked
and drm_gem_object_handle_unreference_unlocked functions that
do not require holding struct_mutex.

drm_gem_object_unreference_unlocked calls the new
->gem_free_object_unlocked entry point if available, and
otherwise just takes struct_mutex and just calls ->gem_free_object

Signed-off-by: Luca Barbieri <luca@luca-barbieri.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_gem.c
include/drm/drmP.h