commit | 2286d2f9e58cb0ae7b9db97106ce73613ab33e5e | [log] [tgz] |
---|---|---|
author | Roman Li <roman.li@amd.com> | Tue Jan 14 13:56:08 2020 -0500 |
committer | Alex Deucher <alexander.deucher@amd.com> | Thu Feb 06 15:04:36 2020 -0500 |
tree | 7add607adae4730be2f70b09e9caf7df64374199 | |
parent | e2d533eceb1feb0b8b965c3ff11184921532a28e [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 <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>