]> err.no Git - linux-2.6/commitdiff
[CPUFREQ] Remove duplicate cpuinfo struct
authorDave Jones <davej@redhat.com>
Tue, 28 Feb 2006 05:37:44 +0000 (00:37 -0500)
committerDave Jones <davej@redhat.com>
Tue, 28 Feb 2006 05:37:44 +0000 (00:37 -0500)
We already have one of these declared, so use it, instead
of declaring a second one for no good reason.

Signed-off-by: Dave Jones <davej@redhat.com>
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c

index c173c0fa117a927734bf9c2ee389c1d5f7ada91d..b0ff9075708c4142d3f70eab9300547ca22f0666 100644 (file)
@@ -479,15 +479,13 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
        unsigned l, h;
        int ret;
        int i;
-       struct cpuinfo_x86 *c = &cpu_data[policy->cpu];
 
        /* Only Intel makes Enhanced Speedstep-capable CPUs */
        if (cpu->x86_vendor != X86_VENDOR_INTEL || !cpu_has(cpu, X86_FEATURE_EST))
                return -ENODEV;
 
-       if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) {
+       if (cpu_has(cpu, X86_FEATURE_CONSTANT_TSC))
                centrino_driver.flags |= CPUFREQ_CONST_LOOPS;
-       }
 
        if (centrino_cpu_init_acpi(policy)) {
                if (policy->cpu != 0)