OSDN Git Service

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)
commit23f4a287fc97d94b6110ee0e17ec92670cc8de89
treec65b6805594d60ed9ee730df968efd82b123cfa2
parent48cb91203e1811e24532ab9204d45f645b69a0e7
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