diff options
-rw-r--r-- | drivers/cpufreq/spear-cpufreq.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/cpufreq/spear-cpufreq.c b/drivers/cpufreq/spear-cpufreq.c index fc714a65fa15..a0265353cb45 100644 --- a/drivers/cpufreq/spear-cpufreq.c +++ b/drivers/cpufreq/spear-cpufreq.c | |||
@@ -157,7 +157,9 @@ static int spear_cpufreq_target(struct cpufreq_policy *policy, | |||
157 | 157 | ||
158 | freqs.new = newfreq / 1000; | 158 | freqs.new = newfreq / 1000; |
159 | freqs.new /= mult; | 159 | freqs.new /= mult; |
160 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); | 160 | |
161 | for_each_cpu(freqs.cpu, policy->cpus) | ||
162 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); | ||
161 | 163 | ||
162 | if (mult == 2) | 164 | if (mult == 2) |
163 | ret = spear1340_set_cpu_rate(srcclk, newfreq); | 165 | ret = spear1340_set_cpu_rate(srcclk, newfreq); |
@@ -170,7 +172,8 @@ static int spear_cpufreq_target(struct cpufreq_policy *policy, | |||
170 | freqs.new = clk_get_rate(spear_cpufreq.clk) / 1000; | 172 | freqs.new = clk_get_rate(spear_cpufreq.clk) / 1000; |
171 | } | 173 | } |
172 | 174 | ||
173 | cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); | 175 | for_each_cpu(freqs.cpu, policy->cpus) |
176 | cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); | ||
174 | return ret; | 177 | return ret; |
175 | } | 178 | } |
176 | 179 | ||