DragonFly BSD
DragonFly commits List (threaded) for 2013-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: ttm porting: Translate locking primitives


From: Francois Tigeot <ftigeot@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 8 Aug 2013 11:31:52 -0700 (PDT)

commit 1716017eecf02e0587b5f5ccf355c868f43a54ac
Author: François Tigeot <ftigeot@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]