summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorRich Felker <dalias@libc.org>2016-06-02 21:12:26 +0000
committerRich Felker <dalias@libc.org>2016-06-03 03:31:22 +0000
commitae47b305745c6d8fe4856058cca791d67aeb1f2a (patch)
treea58d09bd3e541c3aa6af3c0a0d607bf22a6088e7 /arch
parent96fefc4cd619aaca1f57c059ced2b90b398e5628 (diff)
downloadlinux-sh-ae47b305745c6d8fe4856058cca791d67aeb1f2a.tar.gz
sh: fix futex/robust_list on nommu models
The futex cmpxchg runtime testing in kernel/futex.c depends on accesses to address 0 producing EFAULT, which obviously does not work on nommu. Since SH always has cmpxchg, disable the broken runtime detection. At some point this should be fixed at the kernel/futex.c level. UP machines can always provide a working cmpxchg with interrupt masking, and SMP cannot function without a working cmpxchg anyway. Signed-off-by: Rich Felker <dalias@libc.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sh/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 21ac00556e7e..d06cac14236c 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -45,6 +45,7 @@ config SUPERH
select OLD_SIGSUSPEND
select OLD_SIGACTION
select HAVE_ARCH_AUDITSYSCALL
+ select HAVE_FUTEX_CMPXCHG if FUTEX
select HAVE_NMI
help
The SuperH is a RISC processor targeted for use in embedded systems