summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_memory.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2012-11-06 12:31:50 +0100
committerDave Airlie <airlied@redhat.com>2012-11-20 07:15:05 +0100
commitcdad05216c2b2edfe92a9f87d6ae51aab277f3b2 (patch)
tree1ba899709b77745acec655d0a8eea3f08c97a885 /include/drm/drm_memory.h
parentkref: Implement kref_get_unless_zero v3 (diff)
downloadlinux-cdad05216c2b2edfe92a9f87d6ae51aab277f3b2.tar.xz
linux-cdad05216c2b2edfe92a9f87d6ae51aab277f3b2.zip
drm/ttm, drm/vmwgfx: Use RCU locking for object lookups v3
The mostly used lookup+get put+potential_destroy path of TTM objects is converted to use RCU locks. This will substantially decrease the amount of locked bus cycles during normal operation. Since we use kfree_rcu to free the objects, no rcu synchronization is needed at module unload time. v2: Don't touch include/linux/kref.h v3: Adapt to kref_get_unless_zero return value change Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_memory.h')
0 files changed, 0 insertions, 0 deletions