aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-04-15 05:10:41 +0000
committerDave Airlie <[email protected]>2016-04-22 00:43:24 +0000
commit2ddea3fd94889331855ff311ff540e0b182dd216 (patch)
tree77ac4c98098f1d0f765124b438627c8e2ae34503 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentdrm/modes: move reference taking into object lookup. (diff)
downloadkernel-2ddea3fd94889331855ff311ff540e0b182dd216.tar.gz
kernel-2ddea3fd94889331855ff311ff540e0b182dd216.zip
drm/modes: reduce fb_lock to just protecting lists
This reduces the fb_lock to just protecting the num_fb/fb_list. "Previously fb refcounting, and especially the weak reference (kref_get_unless_zero) used in fb lookups have been protected by fb_lock. But with the refactoring to share refcounting in the drm_mode_object base class that switched to being protected by idr_mutex, which means fb_lock critical sections can be reduced." Reviewed-by: Daniel Vetter <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions