]> git.baikalelectronics.ru Git - kernel.git/commit
s390/spinlock: use atomic primitives for spinlocks
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 28 Nov 2016 14:50:48 +0000 (15:50 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 12 Apr 2017 06:43:33 +0000 (08:43 +0200)
commitb4ed3bb10950cb0953edacf84a4c9341da6d510f
treecb5af588f282809cab4d37b1d4a6847814cda5ee
parent730de8b6700d277fcd7340bcbdf03b47c38c6c4a
s390/spinlock: use atomic primitives for spinlocks

Add a couple more __atomic_xxx function to atomic_ops.h and use them
to replace the compare-and-swap inlines in the spinlock code. This
changes the type of the lock value from unsigned int to int.

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