drm/i915: Wrap our timer_list.expires checking
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Jan 2021 12:35:40 +0000 (12:35 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Jan 2021 21:37:14 +0000 (21:37 +0000)
commitc185a16eceae8c9ea29602a3af0cb3071d32af6e
treed91714b8d2b9e36d7c9fef26ab8c3c6c4d1068ea
parent88b39600da3abcf5ef5a704fc028d52a2840011a
drm/i915: Wrap our timer_list.expires checking

Refactor our timer_list.expires checking into its own timer_active()
helper.

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/20210107123541.17153-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_utils.c
drivers/gpu/drm/i915/i915_utils.h