diff options
author | Jeff Smith <jsmith@nvidia.com> | 2012-11-08 23:20:17 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 13:38:12 -0700 |
commit | 4b42a8716f99e4bb5852d0df978a42400d90ddd3 (patch) | |
tree | a68dcfb13fe823f7b92f9ef12fc6d94296cea002 /arch/arm/mach-tegra/powergate.c | |
parent | 83a59b9f0cf2ce4cd6afa7d7bd50d2deb80c3105 (diff) |
ARM: tegra: Move clock/power to pre-si
This change is a part of the effort to enable runtime
platform detection and reduce compile-time conditionals.
Bug 1333554
Change-Id: I93c215fff80e35767593918ffe88e7bb3e6e9f9a
Signed-off-by: Jeff Smith <jsmith@nvidia.com>
Signed-off-by: Chetan Kumar N G <chetankumarn@nvidia.com>
Reviewed-on: http://git-master/r/252553
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/powergate.c')
-rw-r--r-- | arch/arm/mach-tegra/powergate.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c index db36a046dc8a..bca08f9cca15 100644 --- a/arch/arm/mach-tegra/powergate.c +++ b/arch/arm/mach-tegra/powergate.c @@ -43,7 +43,6 @@ static struct powergate_ops *pg_ops; -#ifndef CONFIG_TEGRA_SIMULATION_PLATFORM static spinlock_t *tegra_get_powergate_lock(void) { if (pg_ops && pg_ops->get_powergate_lock) @@ -53,15 +52,17 @@ static spinlock_t *tegra_get_powergate_lock(void) return NULL; } -#endif int tegra_powergate_set(int id, bool new_state) { -#ifndef CONFIG_TEGRA_SIMULATION_PLATFORM bool status; unsigned long flags; - spinlock_t *lock = tegra_get_powergate_lock(); + spinlock_t *lock; + + if (tegra_cpu_is_asim()) + return 0; + lock = tegra_get_powergate_lock(); /* 10us timeout for toggle operation if it takes affect*/ int toggle_timeout = 10; @@ -107,7 +108,6 @@ int tegra_powergate_set(int id, bool new_state) trace_power_domain_target(tegra_powergate_get_name(id), new_state, raw_smp_processor_id()); -#endif return 0; } |