Skip to content

Commit 9e28f7a

Browse files
larunbevireshk
authored andcommitted
OPP: rate-limit debug messages when no change in OPP is required
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>
1 parent ac9a786 commit 9e28f7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/opp/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ static int _set_opp(struct device *dev, struct opp_table *opp_table,
10911091

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

0 commit comments

Comments
 (0)