drm/amd/display: Fix 64-bit division in hwss_edp_power_control

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Harry Wentland 2018-04-10 16:08:44 -04:00 committed by Alex Deucher
parent 5422a28fe8
commit 45a2d58e84

View File

@ -857,7 +857,7 @@ void hwss_edp_power_control(
dm_get_elapse_time_in_ns(
ctx,
current_ts,
link->link_trace.time_stamp.edp_poweroff) / 1000000;
div64_u64(link->link_trace.time_stamp.edp_poweroff, 1000000));
unsigned long long wait_time_ms = 0;
/* max 500ms from LCDVDD off to on */