aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syscall.c
diff options
context:
space:
mode:
authorHugh Dickins <[email protected]>2012-02-09 01:13:40 +0000
committerLinus Torvalds <[email protected]>2012-02-09 03:03:51 +0000
commitb9980cdcf2524c5fe15d8cbae9c97b3ed6385563 (patch)
tree18295d2fe860bcdaae87138b44023abadfcd24d4 /lib/syscall.c
parentdrivers/leds/leds-lm3530.c: fix setting pltfm->als_vmax (diff)
downloadkernel-b9980cdcf2524c5fe15d8cbae9c97b3ed6385563.tar.gz
kernel-b9980cdcf2524c5fe15d8cbae9c97b3ed6385563.zip
mm: fix UP THP spin_is_locked BUGs
Fix CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_SMP=n CONFIG_DEBUG_VM=y CONFIG_DEBUG_SPINLOCK=n kernel: spin_is_locked() is then always false, and so triggers some BUGs in Transparent HugePage codepaths. asm-generic/bug.h mentions this problem, and provides a WARN_ON_SMP(x); but being too lazy to add VM_BUG_ON_SMP, BUG_ON_SMP, WARN_ON_SMP_ONCE, VM_WARN_ON_SMP_ONCE, just test NR_CPUS != 1 in the existing VM_BUG_ONs. Signed-off-by: Hugh Dickins <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/syscall.c')
0 files changed, 0 insertions, 0 deletions