msm: clock: Print clock rates for handoff in one place as pr_debug's
Rather than delegating the task of printing the rates of handed-off
clocks to each of the handoff functions, print them in clock.c. To
cut down on log noise, downgrade them from pr_info to pr_debug.
Also, remove handoff prints for rateless clock in clock-local2.c,
since these are of limited value anyway.
Change-Id: Iaf4d6b0c738e2f84b01b8a37e6eb1e4c093e2687
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
diff --git a/arch/arm/mach-msm/clock.c b/arch/arm/mach-msm/clock.c
index cbc9fba..8bf98fa 100644
--- a/arch/arm/mach-msm/clock.c
+++ b/arch/arm/mach-msm/clock.c
@@ -423,6 +423,7 @@
{
enum handoff ret;
struct handoff_clk *h;
+ unsigned long rate;
int err = 0;
/*
@@ -454,6 +455,9 @@
err = clk_prepare_enable(clk);
if (err)
goto out;
+ rate = clk_get_rate(clk);
+ if (rate)
+ pr_debug("%s rate=%lu\n", clk->dbg_name, rate);
h->clk = clk;
list_add_tail(&h->list, &handoff_list);
}