lkml.org 
[lkml]   [2013]   [Sep]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 136/228] cpufreq: loongson2: use cpufreq_generic_init() routine
    Date
    Use generic cpufreq_generic_init() routine instead of replicating the same code
    here. This driver wasn't setting transition_latency and so is getting set to 0
    by default. Lets mark it explicitly by calling the generic routine with
    transition_latency as 0.

    Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
    Cc: John Crispin <blogic@openwrt.org>
    Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
    ---
    drivers/cpufreq/loongson2_cpufreq.c | 3 +--
    1 file changed, 1 insertion(+), 2 deletions(-)

    diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c
    index dd4f3e4..2c8ec8e 100644
    --- a/drivers/cpufreq/loongson2_cpufreq.c
    +++ b/drivers/cpufreq/loongson2_cpufreq.c
    @@ -131,8 +131,7 @@ static int loongson2_cpufreq_cpu_init(struct cpufreq_policy *policy)
    return ret;
    }

    - return cpufreq_table_validate_and_show(policy,
    - &loongson2_clockmod_table[0]);
    + return cpufreq_generic_init(policy, &loongson2_clockmod_table[0], 0);
    }

    static int loongson2_cpufreq_exit(struct cpufreq_policy *policy)
    --
    1.7.12.rc2.18.g61b472e


    \
     
     \ /
      Last update: 2013-09-13 16:01    [W:3.026 / U:0.412 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site