mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
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>
This commit is contained in:
parent
ff123eb774
commit
7726b55b5d
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user