diff options
author | Roman Li <roman.li@amd.com> | 2020-01-14 13:56:08 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-02-11 12:10:41 -0500 |
commit | 7aa62404dfdefd759e6a5f8923a0b0704729295f (patch) | |
tree | 4e335a71dff37a09321e85d7a396ec2a8d2fe18b /mm/percpu.c | |
parent | bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9 (diff) | |
download | talos-op-linux-7aa62404dfdefd759e6a5f8923a0b0704729295f.tar.gz talos-op-linux-7aa62404dfdefd759e6a5f8923a0b0704729295f.zip |
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 <roman.li@amd.com>
Reviewed-by: Zhan Liu <Zhan.Liu@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'mm/percpu.c')
0 files changed, 0 insertions, 0 deletions