]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
s390/locking: Reenable optimistic spinning
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 5 Aug 2014 07:57:51 +0000 (09:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:19:07 +0000 (09:19 -0700)
commit42ce390ad9a3874337261b470fe1630cd3be27b1
tree0f4fec28b20cd3543a28ccfdb8ff3964a3d5b4e2
parent7f8fe3d4b9962c775116e14fb5968328f487b0de
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/Kconfig