mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
Merge "disp: msm: sde: Correct initialization value for frame count"
This commit is contained in:
commit
73175fb95a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
u64 fps = 0, frame_count = 1;
|
||||
u64 fps = 0, frame_count = 0;
|
||||
ktime_t current_time;
|
||||
int i = 0, current_time_index;
|
||||
u64 diff_us;
|
||||
|
|
@ -355,7 +355,7 @@ static ssize_t measured_fps_show(struct device *device,
|
|||
fps_int = (unsigned int) 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", fps_int, fps_decimal,
|
||||
"fps: %d.%d duration:%d frame_count:%lld\n", fps_int, fps_decimal,
|
||||
sde_crtc->fps_info.fps_periodic_duration, frame_count);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue