]> git.ipfire.org Git - thirdparty/linux.git/commit
s390/atomic_ops: Improve __atomic_set() for small values
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 1 Jul 2024 15:04:57 +0000 (17:04 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 10 Jul 2024 17:50:44 +0000 (19:50 +0200)
commitee19370c92f6db4e92e060b5e0c2aa99e4f85408
tree5b459f05b6a120acf921d72818c8be06d16f4b14
parentf2ed8367bfa55a2ad3adfe7a59b79b82905df740
s390/atomic_ops: Improve __atomic_set() for small values

Use mvhi/mvghi for small constant values within the __atomic_set()
inline assemblies. This avoids loading the specified value into a
register.

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

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