diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-08 02:30:45 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-08 10:21:23 +0200 |
commit | 87c7acf867700a9f32db81b227174bf83fecfde3 (patch) | |
tree | a647a0f47031a691d4b021c7f003935325760ecf /drivers/gpu/drm/i915/intel_lrc.c | |
parent | drm/i915: Don't request a bug report for unsafe module parameters (diff) | |
download | linux-87c7acf867700a9f32db81b227174bf83fecfde3.tar.xz linux-87c7acf867700a9f32db81b227174bf83fecfde3.zip |
drm/i915/execlists: Drop unused parameter to lookup_priolist()
lookup_priolist() no longer attaches the request into the priolist, it
just returns the priolist for the given priority instead. Drop the
unused parameter.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180508003046.2633-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lrc.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_lrc.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c index 9f3cce022b2d..bf9a44dae558 100644 --- a/drivers/gpu/drm/i915/intel_lrc.c +++ b/drivers/gpu/drm/i915/intel_lrc.c @@ -258,9 +258,7 @@ intel_lr_context_descriptor_update(struct i915_gem_context *ctx, } static struct i915_priolist * -lookup_priolist(struct intel_engine_cs *engine, - struct i915_sched_node *node, - int prio) +lookup_priolist(struct intel_engine_cs *engine, int prio) { struct intel_engine_execlists * const execlists = &engine->execlists; struct i915_priolist *p; @@ -345,7 +343,7 @@ static void __unwind_incomplete_requests(struct intel_engine_cs *engine) GEM_BUG_ON(rq_prio(rq) == I915_PRIORITY_INVALID); if (rq_prio(rq) != last_prio) { last_prio = rq_prio(rq); - p = lookup_priolist(engine, &rq->sched, last_prio); + p = lookup_priolist(engine, last_prio); } list_add(&rq->sched.link, &p->requests); @@ -1145,7 +1143,7 @@ static void queue_request(struct intel_engine_cs *engine, int prio) { list_add_tail(&node->link, - &lookup_priolist(engine, node, prio)->requests); + &lookup_priolist(engine, prio)->requests); } static void __submit_queue(struct intel_engine_cs *engine, int prio) |