]> err.no Git - linux-2.6/commitdiff
x86: fix !SMP compiler warning in arch/x86/kernel/acpi/processor.c
authorJeff Garzik <jgarzik@redhat.com>
Sat, 27 Oct 2007 18:57:43 +0000 (20:57 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 27 Oct 2007 18:57:43 +0000 (20:57 +0200)
Fix !CONFIG_SMP warning:

arch/x86/kernel/acpi/processor.c: In function arch_acpi_processor_init_pdc:
arch/x86/kernel/acpi/processor.c:65: warning: unused variable cpu

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/acpi/processor.c

index 2ed0a4ce62f02ebc77750fe11adec66e7e6f9f8e..f63e5ff0aca12ac5e386076772a6ea90f44a2e2d 100644 (file)
@@ -62,8 +62,7 @@ static void init_intel_pdc(struct acpi_processor *pr, struct cpuinfo_x86 *c)
 /* Initialize _PDC data based on the CPU vendor */
 void arch_acpi_processor_init_pdc(struct acpi_processor *pr)
 {
-       unsigned int cpu = pr->id;
-       struct cpuinfo_x86 *c = &cpu_data(cpu);
+       struct cpuinfo_x86 *c = &cpu_data(pr->id);
 
        pr->pdc = NULL;
        if (c->x86_vendor == X86_VENDOR_INTEL)