summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/tegra3_clocks.c
diff options
context:
space:
mode:
authorSrikanth Nori <srikanthn@nvidia.com>2012-07-02 17:35:38 -0700
committerSimone Willett <swillett@nvidia.com>2012-08-16 13:37:52 -0700
commit43ecb3724fa90222dd6cd502aee422364b0c65cb (patch)
tree39a1c589e7ec31c0124f1dbab151ae968802a91c /arch/arm/mach-tegra/tegra3_clocks.c
parentbe3e9def273181d1b44c1891de8602faebd719a8 (diff)
ARM: tegra: clocks: Frequency stats for SCLK/CBUS
This adds a frequency histogram of the frequencies that SCLK and CBUS clocks go to over time. Stats are presented in the debugfs at /d/clock_stats/cbus and /d/clock_stats/sclk only if debugfs is enabled in config Change-Id: Icae83329612958d8ed4318b2e10c487683d9d734 Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com> Reviewed-on: http://git-master/r/118380 Reviewed-by: Wen Yi <wyi@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/tegra3_clocks.c')
-rw-r--r--arch/arm/mach-tegra/tegra3_clocks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/tegra3_clocks.c b/arch/arm/mach-tegra/tegra3_clocks.c
index 828a806ff99f..9793c7ab052b 100644
--- a/arch/arm/mach-tegra/tegra3_clocks.c
+++ b/arch/arm/mach-tegra/tegra3_clocks.c
@@ -4232,6 +4232,8 @@ static struct clk tegra_clk_emc_bridge = {
.parent = &tegra_clk_emc,
};
+static RAW_NOTIFIER_HEAD(cbus_rate_change_nh);
+
static struct clk tegra_clk_cbus = {
.name = "cbus",
.parent = &tegra_pll_c,
@@ -4243,7 +4245,8 @@ static struct clk tegra_clk_cbus = {
.shared_bus_backup = {
.input = &tegra_pll_p,
.value = 2,
- }
+ },
+ .rate_change_nh = &cbus_rate_change_nh,
};
#define PERIPH_CLK(_name, _dev, _con, _clk_num, _reg, _max, _inputs, _flags) \