diff options
author | Alex Frid <afrid@nvidia.com> | 2011-06-27 14:36:58 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:30 -0800 |
commit | 4d04ca864ba7dfb6898f7c8065aa49d59b7eddde (patch) | |
tree | 0bf0def9a597dbd912ee9a5f922a94cd72e7bcfa /arch/arm/mach-tegra/clock.h | |
parent | bcee00a3e0de825418c63d5340fbf794100610c3 (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.h')
-rw-r--r-- | arch/arm/mach-tegra/clock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/clock.h b/arch/arm/mach-tegra/clock.h index 4e4adf1803e4..33325470a3d3 100644 --- a/arch/arm/mach-tegra/clock.h +++ b/arch/arm/mach-tegra/clock.h @@ -91,6 +91,7 @@ struct clk_ops { long (*round_rate)(struct clk *, unsigned long); int (*clk_cfg_ex)(struct clk *, enum tegra_clk_ex_param, u32); void (*reset)(struct clk *, bool); + int (*shared_bus_update)(struct clk *); }; struct clk_stats { @@ -227,6 +228,7 @@ unsigned long clk_get_max_rate(struct clk *c); unsigned long clk_get_min_rate(struct clk *c); unsigned long clk_get_rate_locked(struct clk *c); int clk_set_rate_locked(struct clk *c, unsigned long rate); +int tegra_clk_shared_bus_update(struct clk *c); void tegra2_sdmmc_tap_delay(struct clk *c, int delay); int tegra_emc_set_rate(unsigned long rate); long tegra_emc_round_rate(unsigned long rate); |