git: drm: Consolidate memory allocation types

Francois Tigeot ftigeot at crater.dragonflybsd.org
Wed Oct 15 12:29:35 PDT 2014


commit 5a3b77d553181ca735914f643937647d4f215d0e
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Wed Oct 15 20:43:53 2014 +0200

    drm: Consolidate memory allocation types
    
    * The DRM subsystem was using many different kmalloc types for no
      good reason
    
    * Some types were only used twice (1x kmalloc() and 1x kfree() calls)
    
    * Remove that useless complexity and only keep one kmalloc type for
      the whole DRM subsystem and its drivers
    
    Inspired-by: OpenBSD

Summary of changes:
 sys/dev/drm/drm_agpsupport.c                |  8 +--
 sys/dev/drm/drm_auth.c                      |  4 +-
 sys/dev/drm/drm_buffer.c                    | 14 ++---
 sys/dev/drm/drm_bufs.c                      | 72 ++++++++++++-------------
 sys/dev/drm/drm_context.c                   |  8 +--
 sys/dev/drm/drm_crtc.c                      | 52 +++++++++---------
 sys/dev/drm/drm_crtc_helper.c               | 18 +++----
 sys/dev/drm/drm_dma.c                       | 14 ++---
 sys/dev/drm/drm_drv.c                       |  8 +--
 sys/dev/drm/drm_edid.c                      |  8 +--
 sys/dev/drm/drm_fb_helper.c                 | 34 ++++++------
 sys/dev/drm/drm_fops.c                      |  4 +-
 sys/dev/drm/drm_gem.c                       | 10 ++--
 sys/dev/drm/drm_global.c                    |  6 +--
 sys/dev/drm/drm_hashtab.c                   |  4 +-
 sys/dev/drm/drm_ioctl.c                     | 10 ++--
 sys/dev/drm/drm_irq.c                       | 38 +++++++------
 sys/dev/drm/drm_memory.c                    | 19 +------
 sys/dev/drm/drm_mm.c                        | 10 ++--
 sys/dev/drm/drm_pci.c                       | 10 ++--
 sys/dev/drm/drm_scatter.c                   |  8 +--
 sys/dev/drm/drm_sysctl.c                    | 12 ++---
 sys/dev/drm/drm_vm.c                        |  8 ++-
 sys/dev/drm/i915/i915_dma.c                 | 25 +++++----
 sys/dev/drm/i915/i915_drv.h                 |  2 -
 sys/dev/drm/i915/i915_gem.c                 | 43 ++++++---------
 sys/dev/drm/i915/i915_gem_context.c         |  6 +--
 sys/dev/drm/i915/i915_gem_execbuffer.c      | 34 ++++++------
 sys/dev/drm/i915/i915_gem_gtt.c             |  8 +--
 sys/dev/drm/i915/i915_gem_tiling.c          |  2 +-
 sys/dev/drm/i915/i915_irq.c                 |  2 +-
 sys/dev/drm/i915/intel_bios.c               |  6 +--
 sys/dev/drm/i915/intel_crt.c                | 12 ++---
 sys/dev/drm/i915/intel_ddi.c                | 12 ++---
 sys/dev/drm/i915/intel_display.c            | 38 ++++++-------
 sys/dev/drm/i915/intel_dp.c                 | 20 +++----
 sys/dev/drm/i915/intel_fb.c                 |  6 +--
 sys/dev/drm/i915/intel_hdmi.c               | 12 ++---
 sys/dev/drm/i915/intel_i2c.c                | 16 +++---
 sys/dev/drm/i915/intel_lvds.c               | 16 +++---
 sys/dev/drm/i915/intel_modes.c              |  2 +-
 sys/dev/drm/i915/intel_overlay.c            | 16 +++---
 sys/dev/drm/i915/intel_pm.c                 |  6 +--
 sys/dev/drm/i915/intel_ringbuffer.c         |  6 +--
 sys/dev/drm/i915/intel_sdvo.c               | 22 ++++----
 sys/dev/drm/i915/intel_sprite.c             |  8 +--
 sys/dev/drm/i915/intel_tv.c                 |  8 +--
 sys/dev/drm/include/drm/drmP.h              | 17 +-----
 sys/dev/drm/include/drm/drm_global.h        |  2 -
 sys/dev/drm/include/linux/workqueue.h       |  4 +-
 sys/dev/drm/mga/mga_dma.c                   | 10 ++--
 sys/dev/drm/mga/mga_drv.c                   |  4 +-
 sys/dev/drm/r128/r128_cce.c                 |  8 +--
 sys/dev/drm/r128/r128_drv.c                 |  4 +-
 sys/dev/drm/r128/r128_state.c               | 84 ++++++++++++++---------------
 sys/dev/drm/radeon/atom.c                   | 20 +++----
 sys/dev/drm/radeon/atombios_encoders.c      | 16 +++---
 sys/dev/drm/radeon/evergreen.c              |  2 +-
 sys/dev/drm/radeon/evergreen_cs.c           | 10 ++--
 sys/dev/drm/radeon/ni.c                     |  2 +-
 sys/dev/drm/radeon/r100.c                   | 12 ++---
 sys/dev/drm/radeon/r300.c                   | 12 ++---
 sys/dev/drm/radeon/r420.c                   |  2 +-
 sys/dev/drm/radeon/r600.c                   |  2 +-
 sys/dev/drm/radeon/r600_cs.c                | 28 +++++-----
 sys/dev/drm/radeon/radeon_atombios.c        | 32 +++++------
 sys/dev/drm/radeon/radeon_bios.c            | 12 ++---
 sys/dev/drm/radeon/radeon_combios.c         | 20 +++----
 sys/dev/drm/radeon/radeon_connectors.c      | 42 +++++++--------
 sys/dev/drm/radeon/radeon_cp.c              | 10 ++--
 sys/dev/drm/radeon/radeon_cs.c              | 34 ++++++------
 sys/dev/drm/radeon/radeon_device.c          |  8 +--
 sys/dev/drm/radeon/radeon_display.c         | 40 +++++++-------
 sys/dev/drm/radeon/radeon_fb.c              |  8 +--
 sys/dev/drm/radeon/radeon_fence.c           |  4 +-
 sys/dev/drm/radeon/radeon_gart.c            | 18 +++----
 sys/dev/drm/radeon/radeon_i2c.c             | 10 ++--
 sys/dev/drm/radeon/radeon_kms.c             | 10 ++--
 sys/dev/drm/radeon/radeon_legacy_encoders.c | 20 +++----
 sys/dev/drm/radeon/radeon_mem.c             | 20 +++----
 sys/dev/drm/radeon/radeon_object.c          |  6 +--
 sys/dev/drm/radeon/radeon_pm.c              |  4 +-
 sys/dev/drm/radeon/radeon_ring.c            |  4 +-
 sys/dev/drm/radeon/radeon_sa.c              |  6 +--
 sys/dev/drm/radeon/radeon_semaphore.c       |  6 +--
 sys/dev/drm/radeon/radeon_state.c           |  4 +-
 sys/dev/drm/radeon/radeon_test.c            |  4 +-
 sys/dev/drm/radeon/radeon_ttm.c             |  6 +--
 sys/dev/drm/radeon/rs400.c                  |  2 +-
 sys/dev/drm/radeon/rs600.c                  |  2 +-
 sys/dev/drm/radeon/rs690.c                  |  2 +-
 sys/dev/drm/radeon/rv515.c                  |  2 +-
 sys/dev/drm/radeon/rv770.c                  |  2 +-
 sys/dev/drm/radeon/si.c                     |  2 +-
 sys/dev/drm/savage/savage_bci.c             | 12 ++---
 sys/dev/drm/savage/savage_drv.c             |  4 +-
 sys/dev/drm/savage/savage_state.c           | 14 ++---
 sys/dev/drm/sis/sis_drv.c                   |  4 +-
 sys/dev/drm/sis/sis_ds.c                    | 12 ++---
 sys/dev/drm/sis/sis_mm.c                    |  4 +-
 sys/dev/drm/tdfx/tdfx_drv.c                 |  4 +-
 sys/dev/drm/ttm/ttm_agp_backend.c           |  6 +--
 sys/dev/drm/ttm/ttm_bo.c                    | 12 ++---
 sys/dev/drm/ttm/ttm_bo_manager.c            |  8 ++-
 sys/dev/drm/ttm/ttm_bo_util.c               |  6 +--
 sys/dev/drm/ttm/ttm_memory.c                | 10 ++--
 sys/dev/drm/ttm/ttm_object.c                | 24 ++++-----
 sys/dev/drm/ttm/ttm_page_alloc.c            |  6 +--
 sys/dev/drm/ttm/ttm_tt.c                    | 14 +++--
 109 files changed, 677 insertions(+), 749 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5a3b77d553181ca735914f643937647d4f215d0e


-- 
DragonFly BSD source repository



More information about the Commits mailing list