Skip to content

Commit

Permalink
OPP: rate-limit debug messages when no change in OPP is required
Browse files Browse the repository at this point in the history
Otherwise, when enabling a debug build and dynamic debug in the kernel, it
quickly floods the kernel ring buffer and makes debugging of other
subsystems almost impossible, unless manually disabled.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
  • Loading branch information
Adrián Larumbe authored and Viresh Kumar committed May 22, 2023
1 parent ac9a786 commit 9e28f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/opp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ static int _set_opp(struct device *dev, struct opp_table *opp_table,

/* Return early if nothing to do */
if (!forced && old_opp == opp && opp_table->enabled) {
dev_dbg(dev, "%s: OPPs are same, nothing to do\n", __func__);
dev_dbg_ratelimited(dev, "%s: OPPs are same, nothing to do\n", __func__);
return 0;
}

Expand Down

0 comments on commit 9e28f7a

Please sign in to comment.