]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 4829/1: add .get method to pxa-cpufreq to silence a warning
authorHolger Schurig <h.schurig@mn-solutions.de>
Mon, 11 Feb 2008 15:53:15 +0000 (16:53 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 17 Feb 2008 10:42:10 +0000 (10:42 +0000)
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>
arch/arm/mach-pxa/cpu-pxa.c

index cbc583beedc8a5f8dea979577b3b4606b6e3cf23..939a3867f77c8696caa0a62a9b20bfea8f6038ec 100644 (file)
@@ -134,7 +134,7 @@ static int pxa_set_target(struct cpufreq_policy *policy,
        struct cpufreq_frequency_table *pxa_freqs_table;
        pxa_freqs_t *pxa_freq_settings;
        struct cpufreq_freqs freqs;
-       int idx;
+       unsigned int idx;
        unsigned long flags;
        unsigned int unused, preset_mdrefr, postset_mdrefr;
        void *ramstart = phys_to_virt(0xa0000000);
@@ -233,6 +233,11 @@ static int pxa_set_target(struct cpufreq_policy *policy,
        return 0;
 }
 
+static unsigned int pxa_cpufreq_get(unsigned int cpu)
+{
+       return get_clk_frequency_khz(0);
+}
+
 static int pxa_cpufreq_init(struct cpufreq_policy *policy)
 {
        int i;
@@ -269,6 +274,7 @@ static struct cpufreq_driver pxa_cpufreq_driver = {
        .verify = pxa_verify_policy,
        .target = pxa_set_target,
        .init   = pxa_cpufreq_init,
+       .get    = pxa_cpufreq_get,
        .name   = "PXA25x",
 };