git: ttm porting: Translate locking primitives

Francois Tigeot ftigeot at crater.dragonflybsd.org
Thu Aug 8 11:31:52 PDT 2013


commit 1716017eecf02e0587b5f5ccf355c868f43a54ac
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Mon Aug 5 21:12:10 2013 +0200

    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.

Summary of changes:
 sys/dev/drm2/ttm/ttm_bo.c           | 140 ++++++++++++++++++------------------
 sys/dev/drm2/ttm/ttm_bo_driver.h    |  10 +--
 sys/dev/drm2/ttm/ttm_bo_manager.c   |  26 +++----
 sys/dev/drm2/ttm/ttm_bo_util.c      |  13 ++--
 sys/dev/drm2/ttm/ttm_bo_vm.c        |  10 +--
 sys/dev/drm2/ttm/ttm_execbuf_util.c |  24 +++----
 sys/dev/drm2/ttm/ttm_lock.c         |  38 +++++-----
 sys/dev/drm2/ttm/ttm_lock.h         |   2 +-
 sys/dev/drm2/ttm/ttm_memory.c       |  23 +++---
 sys/dev/drm2/ttm/ttm_memory.h       |  12 ++--
 sys/dev/drm2/ttm/ttm_object.c       |  60 ++++++++--------
 sys/dev/drm2/ttm/ttm_page_alloc.c   |  22 +++---
 12 files changed, 190 insertions(+), 190 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1716017eecf02e0587b5f5ccf355c868f43a54ac


-- 
DragonFly BSD source repository



More information about the Commits mailing list