diff options
author | Vincent Guittot <vincent.guittot@linaro.org> | 2011-08-25 08:31:20 +0200 |
---|---|---|
committer | Robert Marklund <robert.marklund@stericsson.com> | 2011-10-27 15:56:32 +0200 |
commit | ad2c240b86f5bbd77ef404f4d1904ea60160ea7a (patch) | |
tree | f7990c2d907c5b4b498fe403d47a384710c4b2b9 | |
parent | 7ce61ecafcd049fb0f30f12f3cf0f5304f1f64d7 (diff) |
ARM: ux500: send cpufreq notification for all cpus
The same clock is used for all cpus so we must notify the frequency change
for each one in order to update the configuration of all twd clockevents.
change since V1:
* use policy->cpus instead of cpu_online_mask
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Change-Id: Ib05cc1bb37a1a1dc740257c6f24dd2f3c53f8261
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33276
Reviewed-by: Linus WALLEIJ <linus.walleij@stericsson.com>
Tested-by: Rabin VINCENT <rabin.vincent@stericsson.com>
-rw-r--r-- | drivers/cpufreq/dbx500-cpufreq.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/cpufreq/dbx500-cpufreq.c b/drivers/cpufreq/dbx500-cpufreq.c index eb7c89e2855..fcc21181097 100644 --- a/drivers/cpufreq/dbx500-cpufreq.c +++ b/drivers/cpufreq/dbx500-cpufreq.c @@ -106,13 +106,13 @@ static int dbx500_cpufreq_target(struct cpufreq_policy *policy, freqs.old = policy->cur; freqs.new = freq_table[idx].frequency; - freqs.cpu = policy->cpu; if (freqs.old == freqs.new) return 0; /* pre-change notification */ - cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); + for_each_cpu(freqs.cpu, policy->cpus) + cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); /* request the PRCM unit for opp change */ if (prcmu_set_arm_opp(idx2opp[idx])) { @@ -121,7 +121,8 @@ static int dbx500_cpufreq_target(struct cpufreq_policy *policy, } /* post change notification */ - cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); + for_each_cpu(freqs.cpu, policy->cpus) + cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); return 0; } |