]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Initialise rps timestamp
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Jun 2020 15:19:38 +0000 (16:19 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Jun 2020 19:00:18 +0000 (20:00 +0100)
commit1278f3d73d444bf1d0d5e1d0cd9bf3ca6c94992a
tree39c55564f3ef480485fc528c07fe2d7e20bb0320
parent4663910f3de45398f801efabf5e9de355b47cbb7
drm/i915/gt: Initialise rps timestamp

Smatch warns that we may iterate over an empty array of gt->engines[].
One hopes that this is impossible, but nevertheless we can simply
appease smatch by initialising the timestamp to zero before we starting
probing the busy-time from the engines.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200619151938.21740-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_rps.c