OSDN Git Service

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)
commitc318a203eade42cae639b2bc50c95d1f7d132db4
treef9d3e075269a116282b75b0a8a88c847de148746
parent5b4dc95cf7f573e927fbbd406ebe54225d41b9b2
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