msm: mdss: Rate limit hist bin error logs
Incase of underflow, hist bin errors are flooding the kernel logs. Rate limit the hist bin error logs. CRs-Fixed: 2005935 Change-Id: Ief360271f0dfa9b68beea87f8fb2bbad379eddac Signed-off-by: Rajesh Yadav <ryadav@codeaurora.org>
This commit is contained in:
parent
3a7e752617
commit
15d73a6519
1 changed files with 4 additions and 4 deletions
|
@ -5318,8 +5318,8 @@ static int pp_hist_collect(struct mdp_histogram_data *hist,
|
|||
pr_err("failed to get the hist data, sum = %d\n", sum);
|
||||
ret = sum;
|
||||
} else if (expect_sum && sum != expect_sum) {
|
||||
pr_err("hist error: bin sum incorrect! (%d/%d)\n",
|
||||
sum, expect_sum);
|
||||
pr_err_ratelimited("hist error: bin sum incorrect! (%d/%d)\n",
|
||||
sum, expect_sum);
|
||||
ret = -EINVAL;
|
||||
}
|
||||
hist_collect_exit:
|
||||
|
@ -5389,8 +5389,8 @@ int mdss_mdp_hist_collect(struct mdp_histogram_data *hist)
|
|||
ret = pp_hist_collect(hist, hists[i], ctl_base,
|
||||
exp_sum, DSPP);
|
||||
if (ret)
|
||||
pr_err("hist error: dspp[%d] collect %d\n",
|
||||
dspp_num, ret);
|
||||
pr_err_ratelimited("hist error: dspp[%d] collect %d\n",
|
||||
dspp_num, ret);
|
||||
}
|
||||
/* state of dspp histogram blocks attached to logical display
|
||||
* should be changed atomically to idle. This will ensure that
|
||||
|
|
Loading…
Add table
Reference in a new issue