diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-05-17 13:10:02 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-05-17 13:38:08 +0100 |
commit | e4f815f6bf4694b275defee97d2cd36a4764d6a1 (patch) | |
tree | 40b2f456ed5845beb6d59a107ab5233c5b490b7f /drivers/gpu/drm/i915/i915_gem_request.h | |
parent | a4b2b01523a8f147112f44cd0867d246ed07b43c (diff) | |
download | lwn-e4f815f6bf4694b275defee97d2cd36a4764d6a1.tar.gz lwn-e4f815f6bf4694b275defee97d2cd36a4764d6a1.zip |
drm/i915: Use a define for the default priority [0]
Explicitly assign the default priority, and give it a name. After much
discussion, we have chosen to call it I915_PRIORITY_NORMAL!
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170517121007.27224-7-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_request.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_request.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_request.h b/drivers/gpu/drm/i915/i915_gem_request.h index 4ccab5affd3c..0ecfc5e2d707 100644 --- a/drivers/gpu/drm/i915/i915_gem_request.h +++ b/drivers/gpu/drm/i915/i915_gem_request.h @@ -70,6 +70,7 @@ struct i915_priotree { struct rb_node node; int priority; #define I915_PRIORITY_MAX 1024 +#define I915_PRIORITY_NORMAL 0 #define I915_PRIORITY_MIN (-I915_PRIORITY_MAX) }; |