cpufreq: interactive: Remove unnecessary cpu_online() check
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 1 May 2013 11:01:01 +0000 (16:31 +0530)
committerJon Medhurst <tixy@linaro.org>
Wed, 17 Jul 2013 16:21:53 +0000 (17:21 +0100)
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>
drivers/cpufreq/cpufreq_interactive.c

index 95b7322bb50989211e5c9d36fef6a757273c1e50..321da1f6f2d232eb253eeabf6b35b07fc8dd841d 100644 (file)
@@ -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 =