soc: define ratelimit for prints to avoid flooding of logs
Change-Id: I7aa38c992716152ebb336190d9d3cd2e9a60e8e0 Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
3038c0281b
commit
ecbb93d98d
@@ -189,8 +189,9 @@ static int lpass_hw_vote_prepare(struct clk_hw *hw)
|
||||
&clk_priv->lpass_core_hwvote_client_handle);
|
||||
#endif
|
||||
if (ret < 0) {
|
||||
pr_err("%s lpass core hw vote failed %d\n",
|
||||
__func__, ret);
|
||||
if (__ratelimit(&rtl))
|
||||
pr_err("%s lpass core hw vote failed %d\n",
|
||||
__func__, ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user