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)
commite637d2cba8f34ef5d67a988f18a7f6560e2e51f1
treee9f4b683462f08999de4cff73eacb9928c09f5a1
parentfacbecad717155dbe57eced608fba5dcc1c972aa
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