]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/spinlock: Generate shorter code for arch_spin_unlock()
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 26 Nov 2024 13:28:25 +0000 (14:28 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 28 Nov 2024 13:12:04 +0000 (14:12 +0100)
commit1200f216a3043ad78e89ce1f573fe6d62ed5e5d0
tree125fec8ae83b8d40611300ccc758f9b36a4f68ea
parent2c3bc137f1e339c4fa9485ec4028433b8cb7374b
s390/spinlock: Generate shorter code for arch_spin_unlock()

Use mvhhi instead of sth to write a zero to spinlocks. Compared to the
sth variant this avoids the load of zero to a register, and reduces
register pressure.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/spinlock.h