[PATCH 2/2] S390: Use generic spinlock code.

Stefan Liebler stli@linux.vnet.ibm.com
Wed Feb 8 14:49:00 GMT 2017


This is an updated version of the patch, which adjusts the s390 specific 
atomic-macros in the same way as in include/atomic.h.
Thus passing a volatile int pointer is fine, too.

Okay to commit?

Bye.
Stefan

ChangeLog:

	* sysdeps/s390/atomic-machine.h:
	(__arch_compare_and_exchange_val_32_acq):
	Cast type to omit volatile qualifier.
	(__arch_compare_and_exchange_val_64_acq): Likewise.
	(atomic_exchange_acq): Likewise.
	* sysdeps/s390/nptl/pthread_spin_init.c: Delete File.
	* sysdeps/s390/nptl/pthread_spin_unlock.c: Likewise.
	* sysdeps/s390/nptl/pthread_spin_lock.c:
	(SPIN_LOCK_READS_BETWEEN_CMPXCHG): New define.
	Use generic spinlock code.
	* sysdeps/s390/nptl/pthread_spin_trylock.c:
	(SPIN_TRYLOCK_USE_CMPXCHG_INSTEAD_OF_XCHG): New define.
	Use generic spinlock code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20170208_s390_spinlock.patch
Type: text/x-patch
Size: 7921 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20170208/6b3b598c/attachment.bin>


More information about the Libc-alpha mailing list