aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/cpufreq/db8500-cpufreq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/cpufreq/db8500-cpufreq.c b/drivers/cpufreq/db8500-cpufreq.c
index d90456a809f9..e0acaceca57d 100644
--- a/drivers/cpufreq/db8500-cpufreq.c
+++ b/drivers/cpufreq/db8500-cpufreq.c
@@ -72,13 +72,13 @@ static int db8500_cpufreq_target(struct cpufreq_policy *policy,
72 72
73 freqs.old = policy->cur; 73 freqs.old = policy->cur;
74 freqs.new = freq_table[idx].frequency; 74 freqs.new = freq_table[idx].frequency;
75 freqs.cpu = policy->cpu;
76 75
77 if (freqs.old == freqs.new) 76 if (freqs.old == freqs.new)
78 return 0; 77 return 0;
79 78
80 /* pre-change notification */ 79 /* pre-change notification */
81 cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); 80 for_each_cpu(freqs.cpu, policy->cpus)
81 cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE);
82 82
83 /* request the PRCM unit for opp change */ 83 /* request the PRCM unit for opp change */
84 if (prcmu_set_arm_opp(idx2opp[idx])) { 84 if (prcmu_set_arm_opp(idx2opp[idx])) {
@@ -87,7 +87,8 @@ static int db8500_cpufreq_target(struct cpufreq_policy *policy,
87 } 87 }
88 88
89 /* post change notification */ 89 /* post change notification */
90 cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); 90 for_each_cpu(freqs.cpu, policy->cpus)
91 cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);
91 92
92 return 0; 93 return 0;
93} 94}