]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 May 2019 12:57:55 +0000 (13:57 +0100)
commita3908d1b023638301ea9f9b05c36bed4a0c8699a
treefb22e5bd52fc1e9b4a38f760e06848c3371a205b
parent1e28408d792b7786004e2fc271a67f2f52d7574d
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
drivers/gpu/drm/i915/i915_scheduler.c