summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/clock.c
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2011-06-25 19:15:28 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 00:56:18 -0700
commit1056b5c10ef09320b58514821f75ed5260fbe611 (patch)
tree7a9a951787c87efe8562b41b3d8281c3b1593dd2 /arch/arm/mach-tegra/clock.c
parentcf62b007431f847d4f5d75850987d62746c93fcf (diff)
ARM: tegra: clock: Add shared bus users rate printout
Original-Change-Id: Icb1a5028d575155427f1fd7fa5b3ee2a145934f4 Reviewed-on: http://git-master/r/38421 Tested-by: Aleksandr Frid <afrid@nvidia.com> Tested-by: Gerrit_Virtual_Submit Reviewed-by: Wen Yi <wyi@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Narendra Damahe <ndamahe@nvidia.com> Rebase-Id: Rf473061330e8b6d63948c9a0ed247e37e3534a52
Diffstat (limited to 'arch/arm/mach-tegra/clock.c')
-rw-r--r--arch/arm/mach-tegra/clock.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index 3ff7f6bcc985..7df5c54906f2 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -939,13 +939,16 @@ static void clock_tree_show_one(struct seq_file *s, struct clk *c, int level)
}
}
- seq_printf(s, "%*s%c%c%-*s%c %-6s %-3d %-8s %-10lu\n",
+ seq_printf(s, "%*s%c%c%-*s%c %-6s %-3d %-8s %-10lu",
level * 3 + 1, "",
rate > max_rate ? '!' : ' ',
!c->set ? '*' : ' ',
30 - level * 3, c->name,
c->cansleep ? '$' : ' ',
state, c->refcnt, div, rate);
+ if (c->parent && !list_empty(&c->parent->shared_bus_list))
+ seq_printf(s, " (%lu)", c->u.shared_bus_user.rate);
+ seq_printf(s, "\n");
if (c->dvfs)
dvfs_show_one(s, c->dvfs, level + 1);
@@ -961,8 +964,8 @@ static void clock_tree_show_one(struct seq_file *s, struct clk *c, int level)
static int clock_tree_show(struct seq_file *s, void *data)
{
struct clk *c;
- seq_printf(s, " clock state ref div rate\n");
- seq_printf(s, "--------------------------------------------------------------\n");
+ seq_printf(s, " clock state ref div rate (shared rate)\n");
+ seq_printf(s, "------------------------------------------------------------------------------\n");
mutex_lock(&clock_list_lock);