summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2012-04-23 21:22:45 -0700
committerTodd Poynor <toddpoynor@google.com>2012-04-26 17:06:03 -0700
commit96aa0fc5ecfad49f891ed2085d16ee785500b49a (patch)
treed22ae61fe4253aa2f4f39b265bebb5981bd51f7e
parent7820a652885153a6f7062df100914adeccab9eef (diff)
cpufreq: interactive: remove unused target_validate_time_in_idle
Change-Id: I37c5085b91318242612440dfd775ad762996612f Signed-off-by: Todd Poynor <toddpoynor@google.com>
-rw-r--r--drivers/cpufreq/cpufreq_interactive.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c
index d4cb1eb8a93..69eeabb9679 100644
--- a/drivers/cpufreq/cpufreq_interactive.c
+++ b/drivers/cpufreq/cpufreq_interactive.c
@@ -48,7 +48,6 @@ struct cpufreq_interactive_cpuinfo {
u64 target_set_time;
u64 target_set_time_in_idle;
u64 target_validate_time;
- u64 target_validate_time_in_idle;
struct cpufreq_policy *policy;
struct cpufreq_frequency_table *freq_table;
unsigned int target_freq;
@@ -235,7 +234,6 @@ static void cpufreq_interactive_timer(unsigned long data)
}
}
- pcpu->target_validate_time_in_idle = now_idle;
pcpu->target_validate_time = pcpu->timer_run_time;
if (pcpu->target_freq == new_freq) {
@@ -509,8 +507,7 @@ static void cpufreq_interactive_boost(void)
* allowing speed to drop).
*/
- pcpu->target_validate_time_in_idle =
- get_cpu_idle_time_us(i, &pcpu->target_validate_time);
+ pcpu->target_validate_time = ktime_to_us(ktime_get());
}
spin_unlock_irqrestore(&up_cpumask_lock, flags);
@@ -775,8 +772,6 @@ static int cpufreq_governor_interactive(struct cpufreq_policy *policy,
&pcpu->target_set_time);
pcpu->target_validate_time =
pcpu->target_set_time;
- pcpu->target_validate_time_in_idle =
- pcpu->target_set_time_in_idle;
pcpu->governor_enabled = 1;
smp_wmb();
}