commit | d194314da04eb965c651dcef6d692dc83821a414 | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Sun Feb 16 16:17:46 2020 +0000 |
committer | Chris Wilson <chris@chris-wilson.co.uk> | Sun Feb 16 17:17:28 2020 +0000 |
tree | 8b47f5bc57b7ea0f5881bbeea37f3cbff487f32a | |
parent | 1883a0a4658eaba354db2179b4d3395247d27582 [diff] |
drm/i915: Avoid potential division-by-zero in computing CS timestamp period Since we use a HW readback or estimation of the CS timestamp frequency, sometimes it may result in 0. Avoid the division-by-zero in computing its reciprocal, the timestamp period. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200216161746.500258-1-chris@chris-wilson.co.uk