Loading drivers/video/msm/mdss/mdss_mdp_ctl.c +3 −5 Original line number Original line Diff line number Diff line Loading @@ -1405,15 +1405,13 @@ static int mdss_mdp_set_threshold_max_bandwidth(struct mdss_mdp_ctl *ctl) pr_debug("final mode = %d, bw_mode_bitmap = %d\n", mode, pr_debug("final mode = %d, bw_mode_bitmap = %d\n", mode, ctl->mdata->bw_mode_bitmap); ctl->mdata->bw_mode_bitmap); /* Select BW mode with smallest limit */ /* Return minimum bandwidth limit */ while (mode) { for (i = 0; i < ctl->mdata->max_bw_settings_cnt; i++) { if (mode & BIT(0)) { if (max_bw_settings[i].mdss_max_bw_mode & mode) { threshold = max_bw_settings[i].mdss_max_bw_val; threshold = max_bw_settings[i].mdss_max_bw_val; if (threshold < max) if (threshold < max) max = threshold; max = threshold; } } mode >>= 1; i++; } } return max; return max; Loading Loading
drivers/video/msm/mdss/mdss_mdp_ctl.c +3 −5 Original line number Original line Diff line number Diff line Loading @@ -1405,15 +1405,13 @@ static int mdss_mdp_set_threshold_max_bandwidth(struct mdss_mdp_ctl *ctl) pr_debug("final mode = %d, bw_mode_bitmap = %d\n", mode, pr_debug("final mode = %d, bw_mode_bitmap = %d\n", mode, ctl->mdata->bw_mode_bitmap); ctl->mdata->bw_mode_bitmap); /* Select BW mode with smallest limit */ /* Return minimum bandwidth limit */ while (mode) { for (i = 0; i < ctl->mdata->max_bw_settings_cnt; i++) { if (mode & BIT(0)) { if (max_bw_settings[i].mdss_max_bw_mode & mode) { threshold = max_bw_settings[i].mdss_max_bw_val; threshold = max_bw_settings[i].mdss_max_bw_val; if (threshold < max) if (threshold < max) max = threshold; max = threshold; } } mode >>= 1; i++; } } return max; return max; Loading