]> git.karo-electronics.de Git - linux-beck.git/commit
drm: Extract struct drm_mm_scan from struct drm_mm
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Dec 2016 08:36:29 +0000 (08:36 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Dec 2016 15:44:13 +0000 (16:44 +0100)
commit9a71e277888b39b8f0e8364813ec1ba58a5a4371
treeb0564902f8ce34f7d3ab3ff7033bea42fb4471ff
parent6259a56ba0e1c3a15954e22ea531e810944518cb
drm: Extract struct drm_mm_scan from struct drm_mm

The scan state occupies a large proportion of the struct drm_mm and is
rarely used and only contains temporary state. That makes it suitable to
moving to its struct and onto the stack of the callers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
[danvet: Fix up etnaviv to compile, was missing a BUG_ON.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_mm.c
drivers/gpu/drm/etnaviv/etnaviv_mmu.c
drivers/gpu/drm/i915/i915_gem_evict.c
drivers/gpu/drm/selftests/test-drm_mm.c
include/drm/drm_mm.h