drm/i915: Pass i915_sched_node around internally
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 May 2019 12:01:01 +0000 (13:01 +0100)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 20 May 2019 15:27:43 +0000 (18:27 +0300)
commitf312c23ff92319f5f242b69d93885c53f92030b5
tree8036367afcf25cf3ef0b4afef85e22062a72206c
parent06b2b1a40e3a9a1ea80b4c51885d863ca194ef3f
drm/i915: Pass i915_sched_node around internally

To simplify the next patch, update bump_priority and schedule to accept
the internal i915_sched_ndoe directly and not expect a request pointer.

add/remove: 0/0 grow/shrink: 2/1 up/down: 8/-15 (-7)
Function                                     old     new   delta
i915_schedule_bump_priority                  109     113      +4
i915_schedule                                 50      54      +4
__i915_schedule                              922     907     -15

v2: Adopt node for the old rq local, since it no longer is a request but
the origin node.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190513120102.29660-2-chris@chris-wilson.co.uk
(cherry picked from commit 52c76fb18a34fc08dd06f32b9fc83f1375f083ee)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_scheduler.c