Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | s390/spinlock: use atomic primitives for spinlocks | Martin Schwidefsky | 2017-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 primitives | Martin Schwidefsky | 2016-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> |