drm: Define drm_mm_for_each_node_in_range()
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 23 Nov 2016 14:11:14 +0000 (14:11 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 24 Nov 2016 08:11:27 +0000 (09:11 +0100)
commit522e85dd8677e9cca40c3ae773f171e6a9eece31
treefb7a4b57120aedb8f251e97d939e75cd3adc8fee
parent6a8a66eda17ea6b4970f0c4724958eeababc6ae8
drm: Define drm_mm_for_each_node_in_range()

Some clients would like to iterate over every node within a certain
range. Make a nice little macro for them to hide the mixing of the
rbtree search and linear walk.

v2: Blurb

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161123141118.23876-1-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_mm.c
include/drm/drm_mm.h