git: drm2: remove DRM_SPINXXX macros

Francois Tigeot ftigeot at crater.dragonflybsd.org
Mon Aug 12 00:27:31 PDT 2013


commit 2ebde2718e60e34abf285eb65871d9e35ca5d251
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Sat Aug 10 23:51:04 2013 +0200

    drm2: remove DRM_SPINXXX macros
    
    * They did not apply 1:1 to DragonFly locking directives; keeping them
      in the drivers would have meant lockmgr locks would have had to be be
      used in situations where spinlocks could have done the job.
    
    * Besides the obvious performance pessimization issues, they had the
      unfortunate effect of obscuring the source code
    
    * The original DRM code in the Linux kernel doesn't even use them, they
      were purely a FreeBSD addition

Summary of changes:
 sys/dev/drm2/drmP.h         | 13 +------------
 sys/dev/drm2/drm_bufs.c     | 46 ++++++++++++++++++++++-----------------------
 sys/dev/drm2/drm_dma.c      |  4 ++--
 sys/dev/drm2/drm_drawable.c | 26 ++++++++++++-------------
 sys/dev/drm2/drm_drv.c      |  6 +++---
 sys/dev/drm2/drm_sysctl.c   |  4 ++--
 sys/dev/drm2/drm_vm.c       |  6 +++---
 7 files changed, 47 insertions(+), 58 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2ebde2718e60e34abf285eb65871d9e35ca5d251


-- 
DragonFly BSD source repository



More information about the Commits mailing list