diff options
author | Alex Frid <afrid@nvidia.com> | 2011-07-09 18:38:04 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:48 -0800 |
commit | 5148ccbfc900ba1152f2c9adb8f8ec5d6fc051d3 (patch) | |
tree | 521dfedbe08622f19fc0caf1e32a7d763ef7c211 /arch/arm/mach-tegra/cpu-tegra.c | |
parent | f78c97eaa8651add95fef5854adbc61e78680b1d (diff) |
ARM: tegra: power: Re-factor power headers.
Renamed and moved tegra cpu related function prototypes from power.h
to tegra-cpu.h. No functional changes.
Original-Change-Id: I24c25c9434bf7008e0875d1f74be502cd902c4ba
Reviewed-on: http://git-master/r/40532
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R3d90799453a86a5a9ed012d2bfe373715de6d5c3
Diffstat (limited to 'arch/arm/mach-tegra/cpu-tegra.c')
-rw-r--r-- | arch/arm/mach-tegra/cpu-tegra.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-tegra/cpu-tegra.c b/arch/arm/mach-tegra/cpu-tegra.c index ad8c359e2249..154a4056bc27 100644 --- a/arch/arm/mach-tegra/cpu-tegra.c +++ b/arch/arm/mach-tegra/cpu-tegra.c @@ -40,7 +40,7 @@ #include <mach/edp.h> #include "clock.h" -#include "pm.h" +#include "cpu-tegra.h" /* tegra throttling and edp governors require frequencies in the table to be in ascending order */ @@ -117,7 +117,7 @@ void tegra_throttling_enable(bool enable) cancel_delayed_work_sync(&throttle_work); is_throttling = false; /* restore speed requested by governor */ - tegra_cpu_cap_highest_speed(NULL); + tegra_cpu_set_speed_cap(NULL); } mutex_unlock(&tegra_cpu_lock); @@ -252,7 +252,7 @@ int tegra_edp_update_thermal_zone(int temperature) /* Update cpu rate if cpufreq (at least on cpu0) is already started */ if (target_cpu_speed[0]) { edp_update_limit(); - tegra_cpu_cap_highest_speed(NULL); + tegra_cpu_set_speed_cap(NULL); } mutex_unlock(&tegra_cpu_lock); @@ -291,7 +291,7 @@ static int tegra_cpu_edp_notify( mutex_lock(&tegra_cpu_lock); cpu_clear(cpu, edp_cpumask); edp_update_limit(); - tegra_cpu_cap_highest_speed(NULL); + tegra_cpu_set_speed_cap(NULL); mutex_unlock(&tegra_cpu_lock); break; } @@ -441,7 +441,7 @@ unsigned long tegra_cpu_highest_speed(void) { return rate; } -int tegra_cpu_cap_highest_speed(unsigned int *speed_cap) +int tegra_cpu_set_speed_cap(unsigned int *speed_cap) { unsigned int new_speed = tegra_cpu_highest_speed(); @@ -474,7 +474,7 @@ static int tegra_target(struct cpufreq_policy *policy, freq = freq_table[idx].frequency; target_cpu_speed[policy->cpu] = freq; - ret = tegra_cpu_cap_highest_speed(&new_speed); + ret = tegra_cpu_set_speed_cap(&new_speed); if (ret == 0) tegra_auto_hotplug_governor(new_speed, false); out: @@ -499,7 +499,7 @@ static int tegra_pm_notify(struct notifier_block *nb, unsigned long event, unsigned int freq; is_suspended = false; tegra_cpu_edp_init(true); - tegra_cpu_cap_highest_speed(&freq); + tegra_cpu_set_speed_cap(&freq); pr_info("Tegra cpufreq resume: restoring frequency to %d kHz\n", freq); } |