diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-04-01 12:57:46 +0000 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-02 15:26:32 +0200 |
commit | e9f51837c97d199dfa06ef448797c584755837a8 (patch) | |
tree | d142cce9210cc5978eaed5be6d35f2e424e4b1be /arch/mips/kernel/cpufreq | |
parent | b43a7ffbf33be7e4d3b10b7714ee663ea2c52fe2 (diff) | |
download | blackbird-op-linux-e9f51837c97d199dfa06ef448797c584755837a8.tar.gz blackbird-op-linux-e9f51837c97d199dfa06ef448797c584755837a8.zip |
cpufreq: Don't check if cpu is online/offline for cpufreq callbacks
cpufreq layer doesn't call cpufreq driver's callback for any offline
CPU and so checking that isn't useful.
Lets get rid of it.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/mips/kernel/cpufreq')
-rw-r--r-- | arch/mips/kernel/cpufreq/loongson2_cpufreq.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/mips/kernel/cpufreq/loongson2_cpufreq.c b/arch/mips/kernel/cpufreq/loongson2_cpufreq.c index bafda7063f03..84889573b566 100644 --- a/arch/mips/kernel/cpufreq/loongson2_cpufreq.c +++ b/arch/mips/kernel/cpufreq/loongson2_cpufreq.c @@ -61,9 +61,6 @@ static int loongson2_cpufreq_target(struct cpufreq_policy *policy, struct cpufreq_freqs freqs; unsigned int freq; - if (!cpu_online(cpu)) - return -ENODEV; - cpus_allowed = current->cpus_allowed; set_cpus_allowed_ptr(current, cpumask_of(cpu)); @@ -109,9 +106,6 @@ static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy) unsigned long rate; int ret; - if (!cpu_online(policy->cpu)) - return -ENODEV; - cpuclk = clk_get(NULL, "cpu_clk"); if (IS_ERR(cpuclk)) { printk(KERN_ERR "cpufreq: couldn't get CPU clk\n"); |