]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/atomic_ops: Make use of flag output constraint
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 1 Jul 2024 15:04:58 +0000 (17:04 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 10 Jul 2024 17:50:44 +0000 (19:50 +0200)
commit279a0164e001a87aa7b9852969ed333c3c69b3aa
tree6c255f94b58d0c2d7157db0ca4b8b909acc9da53
parentee19370c92f6db4e92e060b5e0c2aa99e4f85408
s390/atomic_ops: Make use of flag output constraint

With gcc 14.1.0 support for flag output constraint was added for
s390. Use this for __atomic_cmpxchg_bool(). This allows for slightly
better code, since the compiler can generate code depending on the
condition code which is the result of an inline assembly.

The size of the kernel image is reduced by ~12kb.

Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/atomic_ops.h