diff options
Diffstat (limited to 'arch/avr32/mach-at32ap/cpufreq.c')
-rw-r--r-- | arch/avr32/mach-at32ap/cpufreq.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/avr32/mach-at32ap/cpufreq.c b/arch/avr32/mach-at32ap/cpufreq.c index 18b765629a0c..654488723cb5 100644 --- a/arch/avr32/mach-at32ap/cpufreq.c +++ b/arch/avr32/mach-at32ap/cpufreq.c | |||
@@ -61,7 +61,6 @@ static int at32_set_target(struct cpufreq_policy *policy, | |||
61 | 61 | ||
62 | freqs.old = at32_get_speed(0); | 62 | freqs.old = at32_get_speed(0); |
63 | freqs.new = (freq + 500) / 1000; | 63 | freqs.new = (freq + 500) / 1000; |
64 | freqs.cpu = 0; | ||
65 | freqs.flags = 0; | 64 | freqs.flags = 0; |
66 | 65 | ||
67 | if (!ref_freq) { | 66 | if (!ref_freq) { |
@@ -69,7 +68,7 @@ static int at32_set_target(struct cpufreq_policy *policy, | |||
69 | loops_per_jiffy_ref = boot_cpu_data.loops_per_jiffy; | 68 | loops_per_jiffy_ref = boot_cpu_data.loops_per_jiffy; |
70 | } | 69 | } |
71 | 70 | ||
72 | cpufreq_notify_transition(&freqs, CPUFREQ_PRECHANGE); | 71 | cpufreq_notify_transition(policy, &freqs, CPUFREQ_PRECHANGE); |
73 | if (freqs.old < freqs.new) | 72 | if (freqs.old < freqs.new) |
74 | boot_cpu_data.loops_per_jiffy = cpufreq_scale( | 73 | boot_cpu_data.loops_per_jiffy = cpufreq_scale( |
75 | loops_per_jiffy_ref, ref_freq, freqs.new); | 74 | loops_per_jiffy_ref, ref_freq, freqs.new); |
@@ -77,7 +76,7 @@ static int at32_set_target(struct cpufreq_policy *policy, | |||
77 | if (freqs.new < freqs.old) | 76 | if (freqs.new < freqs.old) |
78 | boot_cpu_data.loops_per_jiffy = cpufreq_scale( | 77 | boot_cpu_data.loops_per_jiffy = cpufreq_scale( |
79 | loops_per_jiffy_ref, ref_freq, freqs.new); | 78 | loops_per_jiffy_ref, ref_freq, freqs.new); |
80 | cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE); | 79 | cpufreq_notify_transition(policy, &freqs, CPUFREQ_POSTCHANGE); |
81 | 80 | ||
82 | pr_debug("cpufreq: set frequency %lu Hz\n", freq); | 81 | pr_debug("cpufreq: set frequency %lu Hz\n", freq); |
83 | 82 | ||