Commit 459fc208abd1b365fa013c17d433dfb5b4bc1e3a
Committed by
Linus Torvalds
1 parent
04ab591808
Exists in
master
and in
39 other branches
cpufreq: remove policy->governor setting in drivers initialization
As policy->governor is already set to CPUFREQ_DEFAULT_GOVERNOR in the (always built-in) cpufreq core, we do not need to set it in the drivers. This fixes the sparc64 allmodconfig build failure. Also, remove a totally useles setting of ->policy in cpufreq-pxa3xx.c. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 9 changed files with 0 additions and 12 deletions Side-by-side Diff
- arch/arm/mach-integrator/cpu.c
- arch/arm/mach-pxa/cpufreq-pxa2xx.c
- arch/arm/mach-pxa/cpufreq-pxa3xx.c
- arch/arm/mach-sa1100/cpu-sa1100.c
- arch/avr32/mach-at32ap/cpufreq.c
- arch/blackfin/mach-common/cpufreq.c
- arch/cris/arch-v32/mach-a3/cpufreq.c
- arch/cris/arch-v32/mach-fs/cpufreq.c
- arch/sparc64/kernel/us3_cpufreq.c
arch/arm/mach-integrator/cpu.c
... | ... | @@ -184,7 +184,6 @@ |
184 | 184 | { |
185 | 185 | |
186 | 186 | /* set default policy and cpuinfo */ |
187 | - policy->governor = CPUFREQ_DEFAULT_GOVERNOR; | |
188 | 187 | policy->cpuinfo.max_freq = 160000; |
189 | 188 | policy->cpuinfo.min_freq = 12000; |
190 | 189 | policy->cpuinfo.transition_latency = 1000000; /* 1 ms, assumed */ |
arch/arm/mach-pxa/cpufreq-pxa2xx.c
... | ... | @@ -335,9 +335,6 @@ |
335 | 335 | pxa27x_guess_max_freq(); |
336 | 336 | |
337 | 337 | /* set default policy and cpuinfo */ |
338 | - policy->governor = CPUFREQ_DEFAULT_GOVERNOR; | |
339 | - if (cpu_is_pxa25x()) | |
340 | - policy->policy = CPUFREQ_POLICY_PERFORMANCE; | |
341 | 338 | policy->cpuinfo.transition_latency = 1000; /* FIXME: 1 ms, assumed */ |
342 | 339 | policy->cur = get_clk_frequency_khz(0); /* current freq */ |
343 | 340 | policy->min = policy->max = policy->cur; |
arch/arm/mach-pxa/cpufreq-pxa3xx.c
... | ... | @@ -210,7 +210,6 @@ |
210 | 210 | int ret = -EINVAL; |
211 | 211 | |
212 | 212 | /* set default policy and cpuinfo */ |
213 | - policy->governor = CPUFREQ_DEFAULT_GOVERNOR; | |
214 | 213 | policy->cpuinfo.min_freq = 104000; |
215 | 214 | policy->cpuinfo.max_freq = (cpu_is_pxa320()) ? 806000 : 624000; |
216 | 215 | policy->cpuinfo.transition_latency = 1000; /* FIXME: 1 ms, assumed */ |
arch/arm/mach-sa1100/cpu-sa1100.c
... | ... | @@ -224,7 +224,6 @@ |
224 | 224 | if (policy->cpu != 0) |
225 | 225 | return -EINVAL; |
226 | 226 | policy->cur = policy->min = policy->max = sa11x0_getspeed(0); |
227 | - policy->governor = CPUFREQ_DEFAULT_GOVERNOR; | |
228 | 227 | policy->cpuinfo.min_freq = 59000; |
229 | 228 | policy->cpuinfo.max_freq = 287000; |
230 | 229 | policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; |
arch/avr32/mach-at32ap/cpufreq.c
arch/blackfin/mach-common/cpufreq.c
... | ... | @@ -158,8 +158,6 @@ |
158 | 158 | dpm_state_table[index].tscale); |
159 | 159 | } |
160 | 160 | |
161 | - policy->governor = CPUFREQ_DEFAULT_GOVERNOR; | |
162 | - | |
163 | 161 | policy->cpuinfo.transition_latency = (bfin_read_PLL_LOCKCNT() / (sclk / 1000000)) * 1000; |
164 | 162 | /*Now ,only support one cpu */ |
165 | 163 | policy->cur = cclk; |
arch/cris/arch-v32/mach-a3/cpufreq.c
arch/cris/arch-v32/mach-fs/cpufreq.c
arch/sparc64/kernel/us3_cpufreq.c