File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
drivers/gpu/drm/msm/disp/mdp5 Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ static int pingpong_tearcheck_setup(struct drm_encoder *encoder,
20
20
{
21
21
struct mdp5_kms * mdp5_kms = get_kms (encoder );
22
22
struct device * dev = encoder -> dev -> dev ;
23
- u32 total_lines_x100 , vclks_line , cfg ;
23
+ u32 total_lines , vclks_line , cfg ;
24
24
long vsync_clk_speed ;
25
25
struct mdp5_hw_mixer * mixer = mdp5_crtc_get_mixer (encoder -> crtc );
26
26
int pp_id = mixer -> pp ;
@@ -30,8 +30,8 @@ static int pingpong_tearcheck_setup(struct drm_encoder *encoder,
30
30
return - EINVAL ;
31
31
}
32
32
33
- total_lines_x100 = mode -> vtotal * drm_mode_vrefresh (mode );
34
- if (!total_lines_x100 ) {
33
+ total_lines = mode -> vtotal * drm_mode_vrefresh (mode );
34
+ if (!total_lines ) {
35
35
DRM_DEV_ERROR (dev , "%s: vtotal(%d) or vrefresh(%d) is 0\n" ,
36
36
__func__ , mode -> vtotal , drm_mode_vrefresh (mode ));
37
37
return - EINVAL ;
@@ -43,7 +43,7 @@ static int pingpong_tearcheck_setup(struct drm_encoder *encoder,
43
43
vsync_clk_speed );
44
44
return - EINVAL ;
45
45
}
46
- vclks_line = vsync_clk_speed * 100 / total_lines_x100 ;
46
+ vclks_line = vsync_clk_speed / total_lines ;
47
47
48
48
cfg = MDP5_PP_SYNC_CONFIG_VSYNC_COUNTER_EN
49
49
| MDP5_PP_SYNC_CONFIG_VSYNC_IN_EN ;
You can’t perform that action at this time.
0 commit comments