x86: build fix
authorIngo Molnar <mingo@elte.hu>
Mon, 23 Jun 2008 20:19:22 +0000 (22:19 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 10:50:22 +0000 (12:50 +0200)
fix:

arch/x86/kernel/setup_32.c:409: error: 'enable_local_apic' undeclared (first use in this function)
arch/x86/kernel/setup_32.c:409: error: (Each undeclared identifier is reported only once
arch/x86/kernel/setup_32.c:409: error: for each function it appears in.)

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup_32.c

index b42f570..1e67037 100644 (file)
@@ -406,7 +406,9 @@ void __init setup_arch(char **cmdline_p)
        parse_early_param();
 
        if (acpi_mps_check()){
+#ifdef CONFIG_X86_LOCAL_APIC
                enable_local_apic = -1;
+#endif
                clear_cpu_cap(&boot_cpu_data, X86_FEATURE_APIC);
        }