diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-02-04 11:38:51 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-09 01:18:34 +0100 |
commit | 3361b7b173341fdaa85153e1b322099949c9f8c8 (patch) | |
tree | e40cad5ff71df10ff9ce2cb629ae461f2defd14e /drivers/cpufreq/cpufreq_governor.c | |
parent | 1dd538f072f0b7ba327613253d41ebb329c6d490 (diff) | |
download | op-kernel-dev-3361b7b173341fdaa85153e1b322099949c9f8c8.zip op-kernel-dev-3361b7b173341fdaa85153e1b322099949c9f8c8.tar.gz |
cpufreq: Don't check cpu_online(policy->cpu)
policy->cpu or cpus in policy->cpus can't be offline anymore. And so we don't
need to check if they are online or not.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.c')
-rw-r--r-- | drivers/cpufreq/cpufreq_governor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c index 79795c4..e4a306c 100644 --- a/drivers/cpufreq/cpufreq_governor.c +++ b/drivers/cpufreq/cpufreq_governor.c @@ -225,7 +225,7 @@ int cpufreq_governor_dbs(struct dbs_data *dbs_data, switch (event) { case CPUFREQ_GOV_START: - if ((!cpu_online(cpu)) || (!policy->cur)) + if (!policy->cur) return -EINVAL; mutex_lock(&dbs_data->mutex); |