diff options
Diffstat (limited to 'arch/mips/kernel/cpufreq/loongson2_cpufreq.c')
-rw-r--r-- | arch/mips/kernel/cpufreq/loongson2_cpufreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/cpufreq/loongson2_cpufreq.c b/arch/mips/kernel/cpufreq/loongson2_cpufreq.c index 2f6a0b147ab..ae5db206347 100644 --- a/arch/mips/kernel/cpufreq/loongson2_cpufreq.c +++ b/arch/mips/kernel/cpufreq/loongson2_cpufreq.c | |||
@@ -65,7 +65,7 @@ static int loongson2_cpufreq_target(struct cpufreq_policy *policy, | |||
65 | return -ENODEV; | 65 | return -ENODEV; |
66 | 66 | ||
67 | cpus_allowed = current->cpus_allowed; | 67 | cpus_allowed = current->cpus_allowed; |
68 | set_cpus_allowed(current, cpumask_of_cpu(cpu)); | 68 | set_cpus_allowed_ptr(current, cpumask_of(cpu)); |
69 | 69 | ||
70 | if (cpufreq_frequency_table_target | 70 | if (cpufreq_frequency_table_target |
71 | (policy, &loongson2_clockmod_table[0], target_freq, relation, | 71 | (policy, &loongson2_clockmod_table[0], target_freq, relation, |
@@ -91,7 +91,7 @@ static int loongson2_cpufreq_target(struct cpufreq_policy *policy, | |||
91 | /* notifiers */ | 91 | /* notifiers */ |
92 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); | 92 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); |
93 | 93 | ||
94 | set_cpus_allowed(current, cpus_allowed); | 94 | set_cpus_allowed_ptr(current, &cpus_allowed); |
95 | 95 | ||
96 | /* setting the cpu frequency */ | 96 | /* setting the cpu frequency */ |
97 | clk_set_rate(cpuclk, freq); | 97 | clk_set_rate(cpuclk, freq); |