aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBayan Zabihiyan <[email protected]>2019-07-10 16:00:53 -0400
committerAlex Deucher <[email protected]>2019-08-15 10:53:12 -0500
commita463b263032f7c98c5912207db43be1aa34a6438 (patch)
treefbf78502b5025caea501a95766e4f872cdc3bc56 /tools/perf/scripts/python
parent1cbcfc975164f397b449efb17f59d81a703090db (diff)
drm/amd/display: Fix frames_to_insert math
[Why] The math on deciding on how many "frames to insert" sometimes sent us over the max refresh rate. Also integer overflow can occur if we have high refresh rates. [How] Instead of clipping the frame duration such that it doesn’t go below the min, just remove a frame from the number of frames to insert. + Use unsigned long long for intermediate calculations to prevent integer overflow. Signed-off-by: Bayan Zabihiyan <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Leo Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions