]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Skip unstable timing measurements
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Jan 2021 20:40:21 +0000 (20:40 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Jan 2021 21:35:54 +0000 (21:35 +0000)
commit3129bf319b4a3aacc3388d44ee3f31747d0c5630
treef9d3e075269a116282b75b0a8a88c847de148746
parent71d48538cc84cd19d4269f50e1f51e5ffa578c60
drm/i915/selftests: Skip unstable timing measurements

If any of the perf tests run into 0 time, not only are we liable to
divide by zero, but the result would be highly questionable.
Nevertheless, let's not have a div-by-zero error.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210108204026.20682-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/intel_memory_region.c