diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-02-04 06:38:51 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-02-08 19:18:34 -0500 |
commit | 3361b7b173341fdaa85153e1b322099949c9f8c8 (patch) | |
tree | e40cad5ff71df10ff9ce2cb629ae461f2defd14e /drivers/cpufreq/freq_table.c | |
parent | 1dd538f072f0b7ba327613253d41ebb329c6d490 (diff) |
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/freq_table.c')
-rw-r--r-- | drivers/cpufreq/freq_table.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/cpufreq/freq_table.c b/drivers/cpufreq/freq_table.c index aa5bd39d129e..d7a79662e24c 100644 --- a/drivers/cpufreq/freq_table.c +++ b/drivers/cpufreq/freq_table.c | |||
@@ -63,9 +63,6 @@ int cpufreq_frequency_table_verify(struct cpufreq_policy *policy, | |||
63 | pr_debug("request for verification of policy (%u - %u kHz) for cpu %u\n", | 63 | pr_debug("request for verification of policy (%u - %u kHz) for cpu %u\n", |
64 | policy->min, policy->max, policy->cpu); | 64 | policy->min, policy->max, policy->cpu); |
65 | 65 | ||
66 | if (!cpu_online(policy->cpu)) | ||
67 | return -EINVAL; | ||
68 | |||
69 | cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, | 66 | cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, |
70 | policy->cpuinfo.max_freq); | 67 | policy->cpuinfo.max_freq); |
71 | 68 | ||
@@ -121,9 +118,6 @@ int cpufreq_frequency_table_target(struct cpufreq_policy *policy, | |||
121 | break; | 118 | break; |
122 | } | 119 | } |
123 | 120 | ||
124 | if (!cpu_online(policy->cpu)) | ||
125 | return -EINVAL; | ||
126 | |||
127 | for (i = 0; (table[i].frequency != CPUFREQ_TABLE_END); i++) { | 121 | for (i = 0; (table[i].frequency != CPUFREQ_TABLE_END); i++) { |
128 | unsigned int freq = table[i].frequency; | 122 | unsigned int freq = table[i].frequency; |
129 | if (freq == CPUFREQ_ENTRY_INVALID) | 123 | if (freq == CPUFREQ_ENTRY_INVALID) |