diff options
author | Roman Li <[email protected]> | 2020-01-14 13:56:08 -0500 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2020-02-11 12:10:41 -0500 |
commit | 7aa62404dfdefd759e6a5f8923a0b0704729295f (patch) | |
tree | 4e335a71dff37a09321e85d7a396ec2a8d2fe18b /tools/perf/util/trace-event-scripting.c | |
parent | bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 (diff) |
drm/amd/display: Fix psr static frames calculation
[Why]
Driver crash with psr feature enabled due to divide-by-zero error.
This is a regression after rework to calculate static screen frame
number entry time.
[How]
Correct order of operations to avoid divide-by-zero.
Signed-off-by: Roman Li <[email protected]>
Reviewed-by: Zhan Liu <[email protected]>
Acked-by: Bhawanpreet Lakha <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions