summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/clock.c
diff options
context:
space:
mode:
authorAlex Frid <afrid@nvidia.com>2011-06-27 14:36:58 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:47:30 -0800
commit4d04ca864ba7dfb6898f7c8065aa49d59b7eddde (patch)
tree0bf0def9a597dbd912ee9a5f922a94cd72e7bcfa /arch/arm/mach-tegra/clock.c
parentbcee00a3e0de825418c63d5340fbf794100610c3 (diff)
ARM: tegra: clock: Use bus lock to protect shared bus update
Protected shared bus update with bus lock - common for all shared bus users (update procedure was already covered by individual shared users locks, but it did not prevent concurrent access to shared rates list). Original-Change-Id: Ia0e6886265aff1f624802e0415fe8cecb887b507 Reviewed-on: http://git-master/r/39918 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: R0e0ee997ce9347470e207910f7b4f6c42143717f
Diffstat (limited to 'arch/arm/mach-tegra/clock.c')
-rw-r--r--arch/arm/mach-tegra/clock.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index 99fad6ebf034..94fe935ff810 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -644,6 +644,16 @@ int tegra_is_clk_enabled(struct clk *c)
}
EXPORT_SYMBOL(tegra_is_clk_enabled);
+int tegra_clk_shared_bus_update(struct clk *c)
+{
+ int ret = 0;
+
+ if (c->ops && c->ops->shared_bus_update)
+ ret = c->ops->shared_bus_update(c);
+
+ return ret;
+}
+
/* dvfs initialization may lower default maximum rate */
void __init tegra_init_max_rate(struct clk *c, unsigned long max_rate)
{