diff options
author | Holger Schurig <h.schurig@mn-solutions.de> | 2008-02-11 10:53:15 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-02-17 05:42:10 -0500 |
commit | ea833f0b5a8afcc698c5ccb06237902c0e21e032 (patch) | |
tree | c614c6a58f30f4c3b38ee43f527251a113681edd /arch/arm | |
parent | ac2bf5bdc6ab9d820152623122973ccb1c166031 (diff) |
[ARM] 4829/1: add .get method to pxa-cpufreq to silence a warning
The .get method is needed for suspend/resume. Otherwise you
get this in dmesg:
cpufreq: suspend failed to assert current frequency is what timing core thinks it is.
cpufreq: resume failed to assert current frequency is what timing core thinks it is.
Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-pxa/cpu-pxa.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/cpu-pxa.c b/arch/arm/mach-pxa/cpu-pxa.c index cbc583beedc8..939a3867f77c 100644 --- a/arch/arm/mach-pxa/cpu-pxa.c +++ b/arch/arm/mach-pxa/cpu-pxa.c | |||
@@ -134,7 +134,7 @@ static int pxa_set_target(struct cpufreq_policy *policy, | |||
134 | struct cpufreq_frequency_table *pxa_freqs_table; | 134 | struct cpufreq_frequency_table *pxa_freqs_table; |
135 | pxa_freqs_t *pxa_freq_settings; | 135 | pxa_freqs_t *pxa_freq_settings; |
136 | struct cpufreq_freqs freqs; | 136 | struct cpufreq_freqs freqs; |
137 | int idx; | 137 | unsigned int idx; |
138 | unsigned long flags; | 138 | unsigned long flags; |
139 | unsigned int unused, preset_mdrefr, postset_mdrefr; | 139 | unsigned int unused, preset_mdrefr, postset_mdrefr; |
140 | void *ramstart = phys_to_virt(0xa0000000); | 140 | void *ramstart = phys_to_virt(0xa0000000); |
@@ -233,6 +233,11 @@ static int pxa_set_target(struct cpufreq_policy *policy, | |||
233 | return 0; | 233 | return 0; |
234 | } | 234 | } |
235 | 235 | ||
236 | static unsigned int pxa_cpufreq_get(unsigned int cpu) | ||
237 | { | ||
238 | return get_clk_frequency_khz(0); | ||
239 | } | ||
240 | |||
236 | static int pxa_cpufreq_init(struct cpufreq_policy *policy) | 241 | static int pxa_cpufreq_init(struct cpufreq_policy *policy) |
237 | { | 242 | { |
238 | int i; | 243 | int i; |
@@ -269,6 +274,7 @@ static struct cpufreq_driver pxa_cpufreq_driver = { | |||
269 | .verify = pxa_verify_policy, | 274 | .verify = pxa_verify_policy, |
270 | .target = pxa_set_target, | 275 | .target = pxa_set_target, |
271 | .init = pxa_cpufreq_init, | 276 | .init = pxa_cpufreq_init, |
277 | .get = pxa_cpufreq_get, | ||
272 | .name = "PXA25x", | 278 | .name = "PXA25x", |
273 | }; | 279 | }; |
274 | 280 | ||