-
- Downloads
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>
Showing
- arch/s390/include/asm/atomic_ops.h 12 additions, 10 deletionsarch/s390/include/asm/atomic_ops.h
- arch/s390/include/asm/spinlock.h 20 additions, 25 deletionsarch/s390/include/asm/spinlock.h
- arch/s390/include/asm/spinlock_types.h 3 additions, 3 deletionsarch/s390/include/asm/spinlock_types.h
- arch/s390/lib/spinlock.c 35 additions, 38 deletionsarch/s390/lib/spinlock.c
Loading
Please register or sign in to comment