Commit 4b36b2e5 authored by Chris Wilson's avatar Chris Wilson

drm/i915: Use a local to shorten req->i915->gpu_error.wait_queue

Use a local variable to avoid having to type out the full name of the
gpu_error wait_queue.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170223074422.4125-5-chris@chris-wilson.co.uk
parent 12d3173b
...@@ -1077,6 +1077,7 @@ long i915_wait_request(struct drm_i915_gem_request *req, ...@@ -1077,6 +1077,7 @@ long i915_wait_request(struct drm_i915_gem_request *req,
{ {
const int state = flags & I915_WAIT_INTERRUPTIBLE ? const int state = flags & I915_WAIT_INTERRUPTIBLE ?
TASK_INTERRUPTIBLE : TASK_UNINTERRUPTIBLE; TASK_INTERRUPTIBLE : TASK_UNINTERRUPTIBLE;
wait_queue_head_t *errq = &req->i915->gpu_error.wait_queue;
DEFINE_WAIT(reset); DEFINE_WAIT(reset);
struct intel_wait wait; struct intel_wait wait;
...@@ -1112,7 +1113,7 @@ long i915_wait_request(struct drm_i915_gem_request *req, ...@@ -1112,7 +1113,7 @@ long i915_wait_request(struct drm_i915_gem_request *req,
set_current_state(state); set_current_state(state);
if (flags & I915_WAIT_LOCKED) if (flags & I915_WAIT_LOCKED)
add_wait_queue(&req->i915->gpu_error.wait_queue, &reset); add_wait_queue(errq, &reset);
intel_wait_init(&wait, req->global_seqno); intel_wait_init(&wait, req->global_seqno);
if (intel_engine_add_wait(req->engine, &wait)) if (intel_engine_add_wait(req->engine, &wait))
...@@ -1163,8 +1164,7 @@ long i915_wait_request(struct drm_i915_gem_request *req, ...@@ -1163,8 +1164,7 @@ long i915_wait_request(struct drm_i915_gem_request *req,
i915_reset_in_progress(&req->i915->gpu_error)) { i915_reset_in_progress(&req->i915->gpu_error)) {
__set_current_state(TASK_RUNNING); __set_current_state(TASK_RUNNING);
i915_reset(req->i915); i915_reset(req->i915);
reset_wait_queue(&req->i915->gpu_error.wait_queue, reset_wait_queue(errq, &reset);
&reset);
continue; continue;
} }
...@@ -1175,7 +1175,7 @@ long i915_wait_request(struct drm_i915_gem_request *req, ...@@ -1175,7 +1175,7 @@ long i915_wait_request(struct drm_i915_gem_request *req,
intel_engine_remove_wait(req->engine, &wait); intel_engine_remove_wait(req->engine, &wait);
if (flags & I915_WAIT_LOCKED) if (flags & I915_WAIT_LOCKED)
remove_wait_queue(&req->i915->gpu_error.wait_queue, &reset); remove_wait_queue(errq, &reset);
__set_current_state(TASK_RUNNING); __set_current_state(TASK_RUNNING);
complete: complete:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment