summaryrefslogtreecommitdiffstats
path: root/drivers/s390/crypto
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2015-01-14 17:52:33 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-01-23 15:17:04 +0100
commit2c72a44ecdf2a7ceac73844226e97ed2d5dd1e82 (patch)
treea8475e1252115402a27b4c9a822943782085b151 /drivers/s390/crypto
parent55b5eb75e7ccdfe94b6ea1be6bba0c21149abecf (diff)
downloadop-kernel-dev-2c72a44ecdf2a7ceac73844226e97ed2d5dd1e82.zip
op-kernel-dev-2c72a44ecdf2a7ceac73844226e97ed2d5dd1e82.tar.gz
s390/spinlock: add compare-and-delay to lock wait loops
Add the compare-and-delay instruction to the spin-lock and rw-lock retry loops. A CPU executing the compare-and-delay instruction stops until the lock value has changed. This is done to make the locking code for contended locks to behave better in regard to the multi- hreading facility. A thread of a core executing a compare-and-delay will allow the other threads of a core to get a larger share of the core resources. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/crypto')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud