]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid setting timer->expires to 0
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Apr 2020 07:36:57 +0000 (08:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Apr 2020 15:33:09 +0000 (16:33 +0100)
commita9a9783179d6f55ee412889e0c998b79c9c592c3
tree452f869b18122bb73c6ecc1da31f5278f5cf2bc4
parent1b976ace1542793289eab072b7fb1bbefa22f397
drm/i915: Avoid setting timer->expires to 0

We use timer->expires == 0 to detect if a timer had been cancelled, but
it's a valid expiration we could set. Just skip using 0 and set the
expiry for the next jiffie.

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