disp: msm: sde: Fix 32-bit compilation issues
1.Typecast to avoid distinct pointer type comparison 2.Keep DMA mask aligned with api definition. 3.Add Suffix for literals 4.Remove multfrac func to avoid uncompatible division. 5.64-bit division( operator "/") on 32-bit platforms is not supported. Using platform independent API's here Change-Id: I0e7305418e53876bd1adf00c1963f85cbdf980cc Signed-off-by: Ravikanth Tuniki <rtunik@codeaurora.org>
这个提交包含在:
@@ -276,7 +276,7 @@ static ssize_t measured_fps_show(struct device *device,
|
||||
{
|
||||
struct drm_crtc *crtc;
|
||||
struct sde_crtc *sde_crtc;
|
||||
unsigned int fps_int, fps_decimal;
|
||||
uint64_t fps_int, fps_decimal;
|
||||
u64 fps = 0, frame_count = 0;
|
||||
ktime_t current_time;
|
||||
int i = 0, current_time_index;
|
||||
@@ -353,7 +353,7 @@ static ssize_t measured_fps_show(struct device *device,
|
||||
}
|
||||
}
|
||||
|
||||
fps_int = (unsigned int) sde_crtc->fps_info.measured_fps;
|
||||
fps_int = (uint64_t) sde_crtc->fps_info.measured_fps;
|
||||
fps_decimal = do_div(fps_int, 10);
|
||||
return scnprintf(buf, PAGE_SIZE,
|
||||
"fps: %d.%d duration:%d frame_count:%lld\n", fps_int, fps_decimal,
|
||||
|
在新工单中引用
屏蔽一个用户