Commit 93ed1814 authored by Hugo Hu's avatar Hugo Hu Committed by Alex Deucher

drm/amd/display: Correct calculation of duration time.

Signed-off-by: default avatarHugo Hu <hugo.hu@amd.com>
Reviewed-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c9ff778b
......@@ -864,10 +864,10 @@ void hwss_edp_power_control(
if (power_up) {
unsigned long long current_ts = dm_get_timestamp(ctx);
unsigned long long duration_in_ms =
dm_get_elapse_time_in_ns(
div64_u64(dm_get_elapse_time_in_ns(
ctx,
current_ts,
div64_u64(link->link_trace.time_stamp.edp_poweroff, 1000000));
link->link_trace.time_stamp.edp_poweroff), 1000000);
unsigned long long wait_time_ms = 0;
/* max 500ms from LCDVDD off to on */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment