]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Skip cpus with apic-ids >= 255 in !x2apic_mode
authorSuresh Siddha <suresh.b.siddha@intel.com>
Thu, 22 Dec 2011 01:45:19 +0000 (17:45 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 23 Dec 2011 19:01:49 +0000 (11:01 -0800)
commit95e47ed7c81362e37eae861d06c499067fd05433
treefb6890a1b3c5a4f72f52122ae652cad438fb20d2
parent3f33d5e6b90ab92e0956e76294653618fe324b21
x86: Skip cpus with apic-ids >= 255 in !x2apic_mode

If the x2apic mode is disabled for reasons like interrupt-remapping
not available etc, then we need to skip the logical cpu bringup of
apic-id's >= 255. Otherwise as the platform is in xapic mode, init/startup
IPI's will consider only the low 8-bits and there is a possibility of
re-sending init/startup IPI's to the logical cpu that is already online.

This will avoid potential reboots/unpredictable behavior etc.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Link: http://lkml.kernel.org/r/20111222014632.702932458@sbsiddha-desk.sc.intel.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/smpboot.c