From 45a2d58e84e6d28c2d9ae8e68bd815d9a98ad52e Mon Sep 17 00:00:00 2001 From: Harry Wentland Date: Tue, 10 Apr 2018 16:08:44 -0400 Subject: [PATCH] drm/amd/display: Fix 64-bit division in hwss_edp_power_control Signed-off-by: Harry Wentland Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c index 52427ae42e0f..68a182ce53c7 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c @@ -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 */ -- 2.20.1