]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Replace wait-on-timeout with explicit timeout
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Jul 2018 12:20:44 +0000 (13:20 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Jul 2018 12:56:42 +0000 (13:56 +0100)
commit03aac13e197e60ac2390db96dc1e7e1669024b33
tree4e3b0cdbaacb1b293605e01b6552b8c266fb8b86
parent1e8aeb7f35defd6b262c828582b47e5b10277eef
drm/i915/selftests: Replace wait-on-timeout with explicit timeout

In igt_flush_test() we install a background timer in order to ensure
that the wait completes within a certain time. We can now tell the wait
that it has to complete within a timeout, and so no longer need the
background timer.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180709122044.7028-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/igt_flush_test.c