ARM: tegra: clock: allow tracing of clk_set_parent
Peter Boonstoppel [Wed, 21 Nov 2012 00:54:35 +0000 (16:54 -0800)]
Change-Id: I1d79c61961d84e7cecb9bfdd158f564673595746
Signed-off-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-on: http://git-master/r/165205
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>

arch/arm/mach-tegra/clock.c

index ed6a54e..b6e85fb 100644 (file)
@@ -461,6 +461,8 @@ int clk_set_parent_locked(struct clk *c, struct clk *parent)
        if (ret)
                goto out;
 
+       trace_clock_set_parent(c->name, parent->name);
+
        if (clk_is_auto_dvfs(c) && c->refcnt > 0 &&
                        new_rate < old_rate)
                ret = tegra_dvfs_set_rate(c, new_rate);