diff options
author | Konrad Dybcio <konrad.dybcio@linaro.org> | 2023-03-07 16:29:28 +0300 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2023-03-29 21:49:06 +0300 |
commit | 12ca59b91d04df32e41be5a52f0cabba912c11de (patch) | |
tree | 1e2e8ec2bed3def530cbb4a04edd05a3e122f706 /drivers/clk/clk.c | |
parent | 81fe523af79f50e27647f6f18ed683e379a40d29 (diff) | |
download | linux-12ca59b91d04df32e41be5a52f0cabba912c11de.tar.xz |
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 <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>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 9410a4e1b04b..663933c52efa 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -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) |