linux-uconsole/arch
Suresh Siddha 4a10e12966 x86: Fix double enable_IR_x2apic() call on SMP kernel on !SMP boards
commit 472a474c66 upstream.

Jan Grossmann reported kernel boot panic while booting SMP
kernel on his system with a single core cpu. SMP kernels call
enable_IR_x2apic() from native_smp_prepare_cpus() and on
platforms where the kernel doesn't find SMP configuration we
ended up again calling enable_IR_x2apic() from the
APIC_init_uniprocessor() call in the smp_sanity_check(). Thus
leading to kernel panic.

Don't call enable_IR_x2apic() and default_setup_apic_routing()
from APIC_init_uniprocessor() in CONFIG_SMP case.

NOTE: this kind of non-idempotent and assymetric initialization
sequence is rather fragile and unclean, we'll clean that up
in v2.6.35. This is the minimal fix for v2.6.34.

Reported-by: Jan.Grossmann@kielnet.net
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: <jbarnes@virtuousgeek.org>
Cc: <david.woodhouse@intel.com>
Cc: <weidong.han@intel.com>
Cc: <youquan.song@intel.com>
Cc: <Jan.Grossmann@kielnet.net>
LKML-Reference: <1270083887.7835.78.camel@sbs-t61.sc.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-04-26 07:41:24 -07:00
..
alpha untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
arm ARM: 6031/1: fix Thumb-2 decompressor 2010-04-26 07:41:24 -07:00
avr32 untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
blackfin FDPIC: Respect PT_GNU_STACK exec protection markings when creating NOMMU stack 2010-02-09 04:50:49 -08:00
cris untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
frv FDPIC: Respect PT_GNU_STACK exec protection markings when creating NOMMU stack 2010-02-09 04:50:49 -08:00
h8300 untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
ia64 ACPI: fix "acpi=ht" boot option 2010-03-15 08:49:36 -07:00
m32r untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
m68k untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
m68knommu untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
microblaze untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
mips MIPS: Cleanup forgotten label_module_alloc in tlbex.c 2010-04-01 15:58:04 -07:00
mn10300 untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
parisc untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
powerpc powerpc: TIF_ABI_PENDING bit removal 2010-02-09 04:51:02 -08:00
s390 S390: fix single stepped svcs with TRACE_IRQFLAGS=y 2010-02-09 04:50:43 -08:00
score untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
sh sh: Fix FDPIC binary loader 2010-04-26 07:41:17 -07:00
sparc sparc64: Make prom entry spinlock NMI safe. 2010-04-01 15:58:16 -07:00
um untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
x86 x86: Fix double enable_IR_x2apic() call on SMP kernel on !SMP boards 2010-04-26 07:41:24 -07:00
xtensa untangle the do_mremap() mess 2010-01-18 10:19:11 -08:00
.gitignore
Kconfig oprofile: remove tracing build dependency 2010-03-15 08:49:47 -07:00