diff options
Diffstat (limited to 'drivers/cpufreq/sparc-us2e-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/sparc-us2e-cpufreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cpufreq/sparc-us2e-cpufreq.c b/drivers/cpufreq/sparc-us2e-cpufreq.c index b73feeb666f9..35ddb6da93aa 100644 --- a/drivers/cpufreq/sparc-us2e-cpufreq.c +++ b/drivers/cpufreq/sparc-us2e-cpufreq.c | |||
@@ -234,7 +234,7 @@ 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 | cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current)); | 237 | cpumask_copy(&cpus_allowed, ¤t->cpus_allowed); |
238 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); | 238 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); |
239 | 239 | ||
240 | clock_tick = sparc64_get_clock_tick(cpu) / 1000; | 240 | clock_tick = sparc64_get_clock_tick(cpu) / 1000; |
@@ -252,7 +252,7 @@ static int us2e_freq_target(struct cpufreq_policy *policy, unsigned int index) | |||
252 | unsigned long clock_tick, divisor, old_divisor, estar; | 252 | unsigned long clock_tick, divisor, old_divisor, estar; |
253 | cpumask_t cpus_allowed; | 253 | cpumask_t cpus_allowed; |
254 | 254 | ||
255 | cpumask_copy(&cpus_allowed, tsk_cpus_allowed(current)); | 255 | cpumask_copy(&cpus_allowed, ¤t->cpus_allowed); |
256 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); | 256 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); |
257 | 257 | ||
258 | new_freq = clock_tick = sparc64_get_clock_tick(cpu) / 1000; | 258 | new_freq = clock_tick = sparc64_get_clock_tick(cpu) / 1000; |