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/sparc | |
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/sparc')
-rw-r--r-- | arch/sparc/kernel/us2e_cpufreq.c | 6 | ||||
-rw-r--r-- | arch/sparc/kernel/us3_cpufreq.c | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/arch/sparc/kernel/us2e_cpufreq.c b/arch/sparc/kernel/us2e_cpufreq.c index abe963d7b87c..306ae462bba6 100644 --- a/arch/sparc/kernel/us2e_cpufreq.c +++ b/arch/sparc/kernel/us2e_cpufreq.c | |||
@@ -234,9 +234,6 @@ static unsigned int us2e_freq_get(unsigned int cpu) | |||
234 | cpumask_t cpus_allowed; | 234 | cpumask_t cpus_allowed; |
235 | unsigned long clock_tick, estar; | 235 | unsigned long clock_tick, estar; |
236 | 236 | ||
237 | if (!cpu_online(cpu)) | ||
238 | return 0; | ||
239 | |||
240 | cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current)); | 237 | cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current)); |
241 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); | 238 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); |
242 | 239 | ||
@@ -257,9 +254,6 @@ static void us2e_set_cpu_divider_index(struct cpufreq_policy *policy, | |||
257 | cpumask_t cpus_allowed; | 254 | cpumask_t cpus_allowed; |
258 | struct cpufreq_freqs freqs; | 255 | struct cpufreq_freqs freqs; |
259 | 256 | ||
260 | if (!cpu_online(cpu)) | ||
261 | return; | ||
262 | |||
263 | cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current)); | 257 | cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current)); |
264 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); | 258 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); |
265 | 259 | ||
diff --git a/arch/sparc/kernel/us3_cpufreq.c b/arch/sparc/kernel/us3_cpufreq.c index 7ceb9c8458f0..c71ee142347a 100644 --- a/arch/sparc/kernel/us3_cpufreq.c +++ b/arch/sparc/kernel/us3_cpufreq.c | |||
@@ -82,9 +82,6 @@ static unsigned int us3_freq_get(unsigned int cpu) | |||
82 | unsigned long reg; | 82 | unsigned long reg; |
83 | unsigned int ret; | 83 | unsigned int ret; |
84 | 84 | ||
85 | if (!cpu_online(cpu)) | ||
86 | return 0; | ||
87 | |||
88 | cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current)); | 85 | cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current)); |
89 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); | 86 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); |
90 | 87 | ||
@@ -104,9 +101,6 @@ static void us3_set_cpu_divider_index(struct cpufreq_policy *policy, | |||
104 | cpumask_t cpus_allowed; | 101 | cpumask_t cpus_allowed; |
105 | struct cpufreq_freqs freqs; | 102 | struct cpufreq_freqs freqs; |
106 | 103 | ||
107 | if (!cpu_online(cpu)) | ||
108 | return; | ||
109 | |||
110 | cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current)); | 104 | cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current)); |
111 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); | 105 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); |
112 | 106 | ||