ttm porting: Translate locking primitives
authorFrançois Tigeot <ftigeot@wolfpond.org>
Mon, 5 Aug 2013 19:12:10 +0000 (21:12 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Thu, 8 Aug 2013 18:27:12 +0000 (20:27 +0200)
commit1716017eecf02e0587b5f5ccf355c868f43a54ac
tree14689bab79695653356c31ff0ac2ac829ceb3192
parent48f05d38ceb0039e09ec84795c02fe066eef8474
ttm porting: Translate locking primitives

* rw locks to lockmgr locks

* sx locks to lockmgr locks

* Some mtx locks to lockmgr locks

* Some mtx_locks to spinlocks

Some more locks could probably be converted to spinlocks but this
can be dangerous.
Better use lockmgr locks first and be sure the code runs without any
issue before trying to optimize it.
12 files changed:
sys/dev/drm2/ttm/ttm_bo.c
sys/dev/drm2/ttm/ttm_bo_driver.h
sys/dev/drm2/ttm/ttm_bo_manager.c
sys/dev/drm2/ttm/ttm_bo_util.c
sys/dev/drm2/ttm/ttm_bo_vm.c
sys/dev/drm2/ttm/ttm_execbuf_util.c
sys/dev/drm2/ttm/ttm_lock.c
sys/dev/drm2/ttm/ttm_lock.h
sys/dev/drm2/ttm/ttm_memory.c
sys/dev/drm2/ttm/ttm_memory.h
sys/dev/drm2/ttm/ttm_object.c
sys/dev/drm2/ttm/ttm_page_alloc.c