]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Give the invalid priority a magic name
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Sep 2017 19:39:00 +0000 (20:39 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Sep 2017 11:45:34 +0000 (12:45 +0100)
commit7d1ea609f67a7d17c287ffdc008c79e0e91bc581
treea7167fd8463014d35a58493f3ceecd3a93ce16bd
parent7e4992ac045ccdef9d5a0b4800ee8da43b5a809a
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
drivers/gpu/drm/i915/i915_gem_request.c
drivers/gpu/drm/i915/i915_gem_request.h
drivers/gpu/drm/i915/intel_lrc.c