]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/ap: Replace xchg() with WRITE_ONCE()
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 25 Nov 2024 11:54:30 +0000 (12:54 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 27 Nov 2024 11:55:15 +0000 (12:55 +0100)
commit7726b55b5d6c22dc0e66570597bf6e43d410d093
treebd6e91b4775b1cb8da0912a85e38c0b76e1b6ee1
parentff123eb7741638d55abf82fac090bb3a543c1e74
s390/ap: Replace xchg() with WRITE_ONCE()

The result of xchg() is not used, and in addition it is used on a one byte
memory area which leads to inefficient code.

Use WRITE_ONCE() instead to achieve the same result with much less
generated code.

Acked-by: Harald Freudenberger <freude@linux.ibm.com>
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/ap_bus.c