diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-04-15 03:05:25 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-04-21 18:53:40 -0400 |
commit | ad61f44234c8e2814e47724ddebdc1eb58625f3f (patch) | |
tree | 2f9f68b4beb6a80c5a6e754904001ce7b550d774 /drivers/cpufreq | |
parent | 763f8c3fe493693d8c651bd6352a67acc798e361 (diff) |
cpufreq: ARM big LITTLE: Adapt to latest cpufreq updates
This driver isn't updated to work with latest cpufreq core updates that happened
recently. Fix them.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/arm_big_little.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c index 1d29d1acbda7..dbdf677d2f36 100644 --- a/drivers/cpufreq/arm_big_little.c +++ b/drivers/cpufreq/arm_big_little.c | |||
@@ -77,8 +77,6 @@ static int bL_cpufreq_set_target(struct cpufreq_policy *policy, | |||
77 | target_freq, relation, &freq_tab_idx); | 77 | target_freq, relation, &freq_tab_idx); |
78 | freqs.new = freq_table[cur_cluster][freq_tab_idx].frequency; | 78 | freqs.new = freq_table[cur_cluster][freq_tab_idx].frequency; |
79 | 79 | ||
80 | freqs.cpu = policy->cpu; | ||
81 | |||
82 | pr_debug("%s: cpu: %d, cluster: %d, oldfreq: %d, target freq: %d, new freq: %d\n", | 80 | pr_debug("%s: cpu: %d, cluster: %d, oldfreq: %d, target freq: %d, new freq: %d\n", |
83 | __func__, cpu, cur_cluster, freqs.old, target_freq, | 81 | __func__, cpu, cur_cluster, freqs.old, target_freq, |
84 | freqs.new); | 82 | freqs.new); |
@@ -86,8 +84,7 @@ static int bL_cpufreq_set_target(struct cpufreq_policy *policy, | |||
86 | if (freqs.old == freqs.new) | 84 | if (freqs.old == freqs.new) |
87 | return 0; | 85 | return 0; |
88 | 86 | ||
89 | for_each_cpu(freqs.cpu, policy->cpus) | 87 | cpufreq_notify_transition(policy, &freqs, CPUFREQ_PRECHANGE); |
90 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); | ||
91 | 88 | ||
92 | ret = clk_set_rate(clk[cur_cluster], freqs.new * 1000); | 89 | ret = clk_set_rate(clk[cur_cluster], freqs.new * 1000); |
93 | if (ret) { | 90 | if (ret) { |
@@ -97,8 +94,7 @@ static int bL_cpufreq_set_target(struct cpufreq_policy *policy, | |||
97 | 94 | ||
98 | policy->cur = freqs.new; | 95 | policy->cur = freqs.new; |
99 | 96 | ||
100 | for_each_cpu(freqs.cpu, policy->cpus) | 97 | cpufreq_notify_transition(policy, &freqs, CPUFREQ_POSTCHANGE); |
101 | cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); | ||
102 | 98 | ||
103 | return ret; | 99 | return ret; |
104 | } | 100 | } |
@@ -231,7 +227,7 @@ static struct cpufreq_driver bL_cpufreq_driver = { | |||
231 | .get = bL_cpufreq_get, | 227 | .get = bL_cpufreq_get, |
232 | .init = bL_cpufreq_init, | 228 | .init = bL_cpufreq_init, |
233 | .exit = bL_cpufreq_exit, | 229 | .exit = bL_cpufreq_exit, |
234 | .have_multiple_policies = true, | 230 | .have_governor_per_policy = true, |
235 | .attr = bL_cpufreq_attr, | 231 | .attr = bL_cpufreq_attr, |
236 | }; | 232 | }; |
237 | 233 | ||