cpufreq: speedstep: don't initialize part of policy set by core
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committed by
Rafael J. Wysocki

父節點
1812136ec9
當前提交
4b15768325
@@ -343,7 +343,6 @@ static unsigned int get_cur_freq(unsigned int cpu)
|
||||
static int centrino_cpu_init(struct cpufreq_policy *policy)
|
||||
{
|
||||
struct cpuinfo_x86 *cpu = &cpu_data(policy->cpu);
|
||||
unsigned freq;
|
||||
unsigned l, h;
|
||||
int i;
|
||||
|
||||
@@ -394,12 +393,8 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
|
||||
}
|
||||
}
|
||||
|
||||
freq = get_cur_freq(policy->cpu);
|
||||
policy->cpuinfo.transition_latency = 10000;
|
||||
/* 10uS transition latency */
|
||||
policy->cur = freq;
|
||||
|
||||
pr_debug("centrino_cpu_init: cur=%dkHz\n", policy->cur);
|
||||
|
||||
return cpufreq_table_validate_and_show(policy,
|
||||
per_cpu(centrino_model, policy->cpu)->op_points);
|
||||
|
Reference in New Issue
Block a user