]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Prevent divide-by-zero in debugfs/i915_rps_boost_info
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 18 Feb 2017 11:27:08 +0000 (11:27 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Feb 2017 11:03:30 +0000 (11:03 +0000)
commit141b73112c7c451d62632c615ece075283afa111
treec65b6805594d60ed9ee730df968efd82b123cfa2
parent43bd71f4a610094e14f7cd3e016dcffbe6e6e1ad
drm/i915: Prevent divide-by-zero in debugfs/i915_rps_boost_info

Either by chance, or by misread, the current evaluation interval may be
zero. If that is the case, don't divide by it!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170218112708.24504-1-chris@chris-wilson.co.uk
Reviewed-by: Radoslaw Szwichtenberg <radoslaw.szwichtenberg@intel.com>
drivers/gpu/drm/i915/i915_debugfs.c