summaryrefslogtreecommitdiffstats
path: root/include/drm/ttm
diff options
context:
space:
mode:
authorThomas Hellstrom2012-11-06 12:31:51 +0100
committerDave Airlie2012-11-20 07:15:06 +0100
commit6c1e963cc5771c93d4ed7aa8bdd4322a7c918e9b (patch)
tree435fec38d156d82a0f7497431712f39f59141919 /include/drm/ttm
parentdrm/ttm, drm/vmwgfx: Use RCU locking for object lookups v3 (diff)
downloadkernel-qcow2-linux-6c1e963cc5771c93d4ed7aa8bdd4322a7c918e9b.tar.gz
kernel-qcow2-linux-6c1e963cc5771c93d4ed7aa8bdd4322a7c918e9b.tar.xz
kernel-qcow2-linux-6c1e963cc5771c93d4ed7aa8bdd4322a7c918e9b.zip
drm/ttm: Optimize reservation slightly
Reservation locking currently always takes place under the LRU spinlock. Hence, strictly there is no need for an atomic_cmpxchg call; we can use atomic_read followed by atomic_write since nobody else will ever reserve without the lru spinlock held. At least on Intel this should remove a locked bus cycle on successful reserve. Note that thit commit may be obsoleted by the cross-device reservation work. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/ttm')
0 files changed, 0 insertions, 0 deletions