s390/rwlock: use the interlocked-access facility 1 instructions
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 22 Sep 2014 14:34:38 +0000 (16:34 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 25 Sep 2014 08:52:13 +0000 (10:52 +0200)
commitbbae71bf9c2fe90dc5642d4cddbbc1994861fd92
tree80ce9213a904817502ffc588eb31d5731cc9a250
parent94232a4332de3bc210e7067fd43521b3eb12336a
s390/rwlock: use the interlocked-access facility 1 instructions

Make use of the load-and-add, load-and-or and load-and-and instructions
to atomically update the read-write lock without a compare-and-swap loop.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/spinlock.h
arch/s390/lib/spinlock.c