fix 2.4.19-pre8 UP APIC breakage
PATCH 1/1 fix 2.4.19-pre8 UP APIC breakage
Marcelo,
2.4.19-pre8 gets a linker error if CONFIG_X86_UP_APIC=y and CONFIG_X86_UP_IOAPIC=n:
init/main.o: In function `smp_init':
init/main.o(.text.init+0x59e): undefined reference to skip_ioapic_setup' arch/i386/kernel/kernel.o: In function broken_pirq':
arch/i386/kernel/kernel.o(.text.init+0x3272): undefined reference to `skip_ioapic_setup'
The patch below fixes this. Please apply.
/Mikael
arch/i386/kernel/dmi_scan.c renamed from arch/i386/kernel/dmi_scan.c.~1~ +1 -1
@@ -418,7 +418,7 @@printk (KERN_INFO " *** If you see IRQ problems, in paticular SCSI resets and hangs at boot\n" );printk (KERN_INFO " *** contact your hardware vendor and ask about updates.\n" );printk (KERN_INFO " *** Building an SMP kernel may evade the bug some of the time.\n" ); -#ifdef CONFIG_X86_UP_APIC +#ifdef CONFIG_X86_IO_APIC skip_ioapic_setup =0 ;#endif return 0 ;
init/main.c renamed from init/main.c.~1~ +1 -3
@@ -293,11 +293,9 @@#ifndef CONFIG_SMP #ifdef CONFIG_X86_LOCAL_APIC -extern int skip_ioapic_setup;static void __init smp_init (void ) { -if (!skip_ioapic_setup) -APIC_init_uniprocessor (); +APIC_init_uniprocessor (); }#else #define smp_init () do { } while (0)