diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-05-01 16:31:01 +0530 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-07-17 17:21:53 +0100 |
commit | cc8a8d05fdd028e3b4da01680bc8c583a0aa1ed0 (patch) | |
tree | 5580ea97e4841b82e1d96576108823df0c9f4f18 | |
parent | 1551d3a9fc376b8b0898d10122033b87f0293110 (diff) |
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.
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 95b7322bb50..321da1f6f2d 100644 --- a/drivers/cpufreq/cpufreq_interactive.c +++ b/drivers/cpufreq/cpufreq_interactive.c @@ -1035,9 +1035,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 = |