aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/atomic_ops.h
Commit message (Collapse)AuthorAge
* s390/spinlock: use atomic primitives for spinlocksMartin Schwidefsky2017-04-12
| | | | | | | | 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>
* s390/atomic: refactor atomic primitivesMartin Schwidefsky2016-11-11
Rework atomic.h to make the low level functions avaible for use in other headers without using atomic_t, e.g. in bitops.h. Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>