]> 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)
commit369d46a03197ad72181e76da47bf454e52ed364d
tree4e3b0cdbaacb1b293605e01b6552b8c266fb8b86
parent894a6862137857763cbc6af9ee8294f3f2289d75
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