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)
commitd9a13ce3fa5f396f100ab3f58e5ca127c77a74bb
tree4e3b0cdbaacb1b293605e01b6552b8c266fb8b86
parent2621cefaa42b3a7455d30e78831c6b55290d40c8
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