From 5148ccbfc900ba1152f2c9adb8f8ec5d6fc051d3 Mon Sep 17 00:00:00 2001 From: Alex Frid Date: Sat, 9 Jul 2011 18:38:04 -0700 Subject: 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 Tested-by: Varun Colbert Rebase-Id: R3d90799453a86a5a9ed012d2bfe373715de6d5c3 --- arch/arm/mach-tegra/cpu-tegra.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'arch/arm/mach-tegra/cpu-tegra.c') 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 #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); } -- cgit v1.2.3