diff options
author | Chris Wilson | 2017-09-28 21:39:00 +0200 |
---|---|---|
committer | Chris Wilson | 2017-09-29 13:45:34 +0200 |
commit | 7d1ea609f67a7d17c287ffdc008c79e0e91bc581 (patch) | |
tree | a7167fd8463014d35a58493f3ceecd3a93ce16bd /drivers/gpu/drm/i915/i915_gem_request.c | |
parent | drm/i915/execlists: Move request unwinding to a separate function (diff) | |
download | kernel-qcow2-linux-7d1ea609f67a7d17c287ffdc008c79e0e91bc581.tar.gz kernel-qcow2-linux-7d1ea609f67a7d17c287ffdc008c79e0e91bc581.tar.xz kernel-qcow2-linux-7d1ea609f67a7d17c287ffdc008c79e0e91bc581.zip |
drm/i915: Give the invalid priority a magic name
We use INT_MIN to denote the priority of a request that has not been
submitted to the scheduler; we treat INT_MIN as an invalid priority and
initialise the request to it. Give the value a name so it stands out.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170928193910.17988-3-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_request.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_request.c b/drivers/gpu/drm/i915/i915_gem_request.c index 4eb1a76731b2..14956d899911 100644 --- a/drivers/gpu/drm/i915/i915_gem_request.c +++ b/drivers/gpu/drm/i915/i915_gem_request.c @@ -186,7 +186,7 @@ i915_priotree_init(struct i915_priotree *pt) INIT_LIST_HEAD(&pt->signalers_list); INIT_LIST_HEAD(&pt->waiters_list); INIT_LIST_HEAD(&pt->link); - pt->priority = INT_MIN; + pt->priority = I915_PRIORITY_INVALID; } static int reset_all_global_seqno(struct drm_i915_private *i915, u32 seqno) |