drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Mar 2019 10:45:29 +0000 (10:45 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Mar 2019 18:09:26 +0000 (18:09 +0000)
commit3d606249165870f28679eec1a3805ce291b0a273
tree19955347e52bbd44e400c2e3c5697c5c39c285b7
parent37fbbd49054b624400a65cf1a39f152a7f3f4749
drm/i915: Make I915_GEM_IDLE_TIMEOUT into a macro

Currently we use HZ/5 for detecting a dead gpu on startup, and we will
wish to reuse this value for detecting a dead gpu on suspend, so convert
it into a macro for later convenience.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190307104530.21745-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem.h