summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2023-01-09 15:54:56 +0100
committerHeiko Carstens <hca@linux.ibm.com>2023-01-11 15:28:47 +0100
commit42400d99e9f0728c17240edb9645637ead40f6b9 (patch)
treea31270d8eb3bfa5e7f7fce4895528c70af882389 /include
parente3f360db08d55a14112bd27454e616a24296a8b0 (diff)
downloadlinux-42400d99e9f0728c17240edb9645637ead40f6b9.tar.bz2
KVM: s390: interrupt: use READ_ONCE() before cmpxchg()
Use READ_ONCE() before cmpxchg() to prevent that the compiler generates code that fetches the to be compared old value several times from memory. Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com> Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Link: https://lore.kernel.org/r/20230109145456.2895385-1-hca@linux.ibm.com Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions