aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2006-02-28 00:37:44 -0500
committerDave Jones <davej@redhat.com>2006-02-28 00:37:44 -0500
commit8ad5496d2359a19127ad9f2eda69485025c9917f (patch)
tree4c80c8f9dac70cd92d611ef113687fb9f2c6796e
parent2c906ae67b5b2fc3585230b16406400a363b42e4 (diff)
downloadkernel_samsung_aries-8ad5496d2359a19127ad9f2eda69485025c9917f.zip
kernel_samsung_aries-8ad5496d2359a19127ad9f2eda69485025c9917f.tar.gz
kernel_samsung_aries-8ad5496d2359a19127ad9f2eda69485025c9917f.tar.bz2
[CPUFREQ] Remove duplicate cpuinfo struct
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>
-rw-r--r--arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c b/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
index c173c0f..b0ff907 100644
--- a/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
+++ b/arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c
@@ -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)