diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-08-05 09:57:51 +0200 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-09-17 16:55:02 +0200 |
commit | f008331068945523ff12ff13f6d07d7303e0e8a9 (patch) | |
tree | d7aef25e387817a8e432fa049c62f7054aefcbe2 | |
parent | 16f6aabf953b586ddc88bdcb0c29548d04877f80 (diff) | |
download | lwn-f008331068945523ff12ff13f6d07d7303e0e8a9.tar.gz lwn-f008331068945523ff12ff13f6d07d7303e0e8a9.zip |
s390/locking: Reenable optimistic spinning
commit 36e7fdaa1a04fcf65b864232e1af56a51c7814d6 upstream.
commit 4badad352a6bb202ec68afa7a574c0bb961e5ebc (locking/mutex: Disable
optimistic spinning on some architectures) fenced spinning for
architectures without proper cmpxchg.
There is no need to disable mutex spinning on s390, though:
The instructions CS,CSG and friends provide the proper guarantees.
(We dont implement cmpxchg with locks).
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
-rw-r--r-- | arch/s390/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index 6671e8db1861..faa97bd4948e 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -93,6 +93,7 @@ config S390 select ARCH_INLINE_WRITE_UNLOCK_IRQ select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE select ARCH_SAVE_PAGE_KEYS if HIBERNATION + select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_USE_CMPXCHG_LOCKREF select ARCH_WANT_IPC_PARSE_VERSION select BUILDTIME_EXTABLE_SORT |