]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit02c503ff237cdcd8e012a122a638295550db10a5
treecb5af588f282809cab4d37b1d4a6847814cda5ee
parentdf26c2e87e6cf3ced1fbd589e40d633a6a7f20cb
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