aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/pmac32-cpufreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cpufreq/pmac32-cpufreq.c')
-rw-r--r--drivers/cpufreq/pmac32-cpufreq.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/cpufreq/pmac32-cpufreq.c b/drivers/cpufreq/pmac32-cpufreq.c
index 6eac1e230078..05f705e1b7a2 100644
--- a/drivers/cpufreq/pmac32-cpufreq.c
+++ b/drivers/cpufreq/pmac32-cpufreq.c
@@ -374,17 +374,11 @@ static unsigned int pmac_cpufreq_get_speed(unsigned int cpu)
374} 374}
375 375
376static int pmac_cpufreq_target( struct cpufreq_policy *policy, 376static int pmac_cpufreq_target( struct cpufreq_policy *policy,
377 unsigned int target_freq, 377 unsigned int index)
378 unsigned int relation)
379{ 378{
380 unsigned int newstate = 0;
381 int rc; 379 int rc;
382 380
383 if (cpufreq_frequency_table_target(policy, pmac_cpu_freqs, 381 rc = do_set_cpu_speed(policy, index, 1);
384 target_freq, relation, &newstate))
385 return -EINVAL;
386
387 rc = do_set_cpu_speed(policy, newstate, 1);
388 382
389 ppc_proc_freq = cur_freq * 1000ul; 383 ppc_proc_freq = cur_freq * 1000ul;
390 return rc; 384 return rc;
@@ -453,7 +447,7 @@ static int pmac_cpufreq_resume(struct cpufreq_policy *policy)
453 447
454static struct cpufreq_driver pmac_cpufreq_driver = { 448static struct cpufreq_driver pmac_cpufreq_driver = {
455 .verify = cpufreq_generic_frequency_table_verify, 449 .verify = cpufreq_generic_frequency_table_verify,
456 .target = pmac_cpufreq_target, 450 .target_index = pmac_cpufreq_target,
457 .get = pmac_cpufreq_get_speed, 451 .get = pmac_cpufreq_get_speed,
458 .init = pmac_cpufreq_cpu_init, 452 .init = pmac_cpufreq_cpu_init,
459 .suspend = pmac_cpufreq_suspend, 453 .suspend = pmac_cpufreq_suspend,