Skip to content

Commit

Permalink
clk: Print an info line before disabling unused clocks
Browse files Browse the repository at this point in the history
Currently, the regulator framework informs us before calling into
their unused cleanup paths, which eases at least some debugging. The
same could be beneficial for clocks, so that random shutdowns shortly
after most initcalls are done can be less of a guess.

Add a pr_info before disabling unused clocks to do so.

Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230307132928.3887737-1-konrad.dybcio@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Konrad Dybcio authored and Stephen Boyd committed Mar 29, 2023
1 parent 81fe523 commit 12ca59b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/clk/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1406,6 +1406,8 @@ static int __init clk_disable_unused(void)
return 0;
}

pr_info("clk: Disabling unused clocks\n");

clk_prepare_lock();

hlist_for_each_entry(core, &clk_root_list, child_node)
Expand Down

0 comments on commit 12ca59b

Please sign in to comment.