https://github.com/torvalds/linux
Revision d7c53c9e822a4fefa13a0cae76f3190bfd0d5c11 authored by Borislav Petkov on 19 August 2010, 18:10:29 UTC, committed by H. Peter Anvin on 19 August 2010, 21:47:43 UTC
When testing cpu hotplug code on 32-bit we kept hitting the "CPU%d:
Stuck ??" message due to multiple cores concurrently accessing the
cpu_callin_mask, among others.

Since these codepaths are not protected from concurrent access due to
the fact that there's no sane reason for making an already complex
code unnecessarily more complex - we hit the issue only when insanely
switching cores off- and online - serialize hotplugging cores on the
sysfs level and be done with it.

[ v2.1: fix !HOTPLUG_CPU build ]

Cc: <stable@kernel.org>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
LKML-Reference: <20100819181029.GC17171@aftab>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
1 parent 8848a91
History
Tip revision: d7c53c9e822a4fefa13a0cae76f3190bfd0d5c11 authored by Borislav Petkov on 19 August 2010, 18:10:29 UTC
x86, hotplug: Serialize CPU hotplug to avoid bringup concurrency issues
Tip revision: d7c53c9
File Mode Size
Kconfig -rw-r--r-- 39.7 KB
Makefile -rw-r--r-- 1.0 KB
calibrate.c -rw-r--r-- 5.1 KB
do_mounts.c -rw-r--r-- 9.3 KB
do_mounts.h -rw-r--r-- 1.4 KB
do_mounts_initrd.c -rw-r--r-- 3.1 KB
do_mounts_md.c -rw-r--r-- 7.9 KB
do_mounts_rd.c -rw-r--r-- 8.0 KB
initramfs.c -rw-r--r-- 12.6 KB
main.c -rw-r--r-- 21.7 KB
noinitramfs.c -rw-r--r-- 1.4 KB
version.c -rw-r--r-- 1.1 KB

back to top