Skip to content

Commit 12ca59b

Browse files
konradybciobebarino
authored andcommitted
clk: Print an info line before disabling unused clocks
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 <[email protected]> Signed-off-by: Konrad Dybcio <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 81fe523 commit 12ca59b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/clk/clk.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,6 +1406,8 @@ static int __init clk_disable_unused(void)
14061406
return 0;
14071407
}
14081408

1409+
pr_info("clk: Disabling unused clocks\n");
1410+
14091411
clk_prepare_lock();
14101412

14111413
hlist_for_each_entry(core, &clk_root_list, child_node)

0 commit comments

Comments
 (0)