diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-04-01 08:57:46 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-02 09:26:32 -0400 |
commit | e9f51837c97d199dfa06ef448797c584755837a8 (patch) | |
tree | d142cce9210cc5978eaed5be6d35f2e424e4b1be /arch/mips | |
parent | b43a7ffbf33be7e4d3b10b7714ee663ea2c52fe2 (diff) |
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')
-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, | |||
61 | struct cpufreq_freqs freqs; | 61 | struct cpufreq_freqs freqs; |
62 | unsigned int freq; | 62 | unsigned int freq; |
63 | 63 | ||
64 | if (!cpu_online(cpu)) | ||
65 | return -ENODEV; | ||
66 | |||
67 | cpus_allowed = current->cpus_allowed; | 64 | cpus_allowed = current->cpus_allowed; |
68 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); | 65 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); |
69 | 66 | ||
@@ -109,9 +106,6 @@ static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy) | |||
109 | unsigned long rate; | 106 | unsigned long rate; |
110 | int ret; | 107 | int ret; |
111 | 108 | ||
112 | if (!cpu_online(policy->cpu)) | ||
113 | return -ENODEV; | ||
114 | |||
115 | cpuclk = clk_get(NULL, "cpu_clk"); | 109 | cpuclk = clk_get(NULL, "cpu_clk"); |
116 | if (IS_ERR(cpuclk)) { | 110 | if (IS_ERR(cpuclk)) { |
117 | printk(KERN_ERR "cpufreq: couldn't get CPU clk\n"); | 111 | printk(KERN_ERR "cpufreq: couldn't get CPU clk\n"); |