aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-05-16 14:58:52 +0530
committerTodd Poynor <toddpoynor@google.com>2013-10-15 17:53:27 -0700
commitad818d962134c16b1d8aff56edc8a2c4e12fa7b7 (patch)
tree9aff82e8606fcee93c49588ad06ec4ff42bb2c4a /drivers/cpufreq
parent763b334bd467a1f9453fe19ab19354e3b8c351e2 (diff)
downloadlinaro-lsk-ad818d962134c16b1d8aff56edc8a2c4e12fa7b7.tar.gz
cpufreq: interactive: Remove unnecessary cpu_online() check
Cpufreq no longer calls governor callback for offlined cpus. i.e. All policy->cpus are guaranteed to be online. Hence we don't need explicit check to see if cpu is online or not. Change-Id: I9ad85ea4addd5b4a40952e59ed730dd15e328690 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/cpufreq_interactive.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c
index a66748e13b3..378835baa84 100644
--- a/drivers/cpufreq/cpufreq_interactive.c
+++ b/drivers/cpufreq/cpufreq_interactive.c
@@ -1073,9 +1073,6 @@ static int cpufreq_governor_interactive(struct cpufreq_policy *policy,
switch (event) {
case CPUFREQ_GOV_START:
- if (!cpu_online(policy->cpu))
- return -EINVAL;
-
mutex_lock(&gov_lock);
freq_table =