diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-05-16 14:58:52 +0530 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2013-10-15 17:53:27 -0700 |
commit | ad818d962134c16b1d8aff56edc8a2c4e12fa7b7 (patch) | |
tree | 9aff82e8606fcee93c49588ad06ec4ff42bb2c4a | |
parent | 763b334bd467a1f9453fe19ab19354e3b8c351e2 (diff) | |
download | linaro-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>
-rw-r--r-- | drivers/cpufreq/cpufreq_interactive.c | 3 |
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 = |