]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Stop using obj->obj_exec_link outside of execbuf
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 16 Mar 2017 13:19:57 +0000 (13:19 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Mar 2017 15:53:26 +0000 (15:53 +0000)
commit70cd893501bae0c3b48ada3e21e43315e939790a
treee9f4b683462f08999de4cff73eacb9928c09f5a1
parentcc3e2dec6dbce02034525ea78b3f254340014914
drm/i915: Stop using obj->obj_exec_link outside of execbuf

i915_gem_stolen_list_info() sneakily takes advantage of the
obj->obj_exec_link to save itself from having to allocate. Enough of the
subterfuge, just allocate an array of pointers and sort them instead of
the list.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170316132006.7976-7-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c