diff options
author | Gaurav Sarode <gsarode@nvidia.com> | 2014-07-16 12:58:40 -0700 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2014-07-31 10:53:47 -0700 |
commit | ab0d361622b38d6663de3206579caaa6f2de054d (patch) | |
tree | d9be1e2c7ea142d86f357033fda401a0ff3f16dd /arch/arm/mach-tegra/clock.h | |
parent | f5091b9678a8a00cf8bb0181e08e1ccdb81fce9b (diff) |
ARM: tegra: clock:Fix Sleeping while atomic in LP0
After enabling CONFIG_DEBUG_ATOMIC_SLEEP,during LP0 we see warning
regarding sleep in atomic region for clk_enable and clk_disable.
To fix this, we need to use clk_enable_locked and clk_disable_locked
instead.These functions do not acquire locks.
Bug 1534913
Change-Id: I7ca661a8030308107c3467d9d524c79b6ec374e8
Signed-off-by: Gaurav Sarode <gsarode@nvidia.com>
Reviewed-on: http://git-master/r/438904
(cherry picked from commit 908ff199970a093a022f4434afc1689ba979bfed)
Reviewed-on: http://git-master/r/440467
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
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 2ed6d1175120..2b95bc31f6f6 100644 --- a/arch/arm/mach-tegra/clock.h +++ b/arch/arm/mach-tegra/clock.h @@ -382,6 +382,8 @@ long clk_round_rate_locked(struct clk *c, unsigned long rate); int tegra_clk_shared_bus_update(struct clk *c); void tegra3_set_cpu_skipper_delay(int delay); unsigned long tegra_clk_measure_input_freq(void); +int clk_enable_locked(struct clk *c); +void clk_disable_locked(struct clk *c); #ifdef CONFIG_ARCH_TEGRA_2x_SOC static inline bool tegra_clk_is_parent_allowed(struct clk *c, struct clk *p) { return true; } |