diff options
author | 2024-11-25 12:54:30 +0100 | |
---|---|---|
committer | 2024-11-27 12:55:15 +0100 | |
commit | 7726b55b5d6c22dc0e66570597bf6e43d410d093 (patch) | |
tree | bd6e91b4775b1cb8da0912a85e38c0b76e1b6ee1 | |
parent | s390/mm: Allow large pages for KASAN shadow mapping (diff) | |
download | linux-rng-7726b55b5d6c22dc0e66570597bf6e43d410d093.tar.xz linux-rng-7726b55b5d6c22dc0e66570597bf6e43d410d093.zip |
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>
-rw-r--r-- | drivers/s390/crypto/ap_bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index e14638936de6..26e1ea1940ec 100644 --- a/drivers/s390/crypto/ap_bus.c +++ b/drivers/s390/crypto/ap_bus.c @@ -453,7 +453,7 @@ static void ap_tasklet_fn(unsigned long dummy) * important that no requests on any AP get lost. */ if (ap_irq_flag) - xchg(ap_airq.lsi_ptr, 0); + WRITE_ONCE(*ap_airq.lsi_ptr, 0); spin_lock_bh(&ap_queues_lock); hash_for_each(ap_queues, bkt, aq, hnode) { |