aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/lib
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2017-02-10 12:34:49 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2017-02-17 07:40:46 +0100
commit187b5f41b4f15feae8b59e3a9ccaa7df85518bbb (patch)
tree5e6d5d07573c6478ae205b171e8ab010847b0e98 /arch/s390/lib
parents390: Audit and remove any remaining unnecessary uses of module.h (diff)
downloadlinux-dev-187b5f41b4f15feae8b59e3a9ccaa7df85518bbb.tar.xz
linux-dev-187b5f41b4f15feae8b59e3a9ccaa7df85518bbb.zip
s390: replace ACCESS_ONCE with READ_ONCE
Remove the last places of ACCESS_ONCE in s390 code. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/lib')
-rw-r--r--arch/s390/lib/spinlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/lib/spinlock.c b/arch/s390/lib/spinlock.c
index 03462326ca3e..ba427eb6f14c 100644
--- a/arch/s390/lib/spinlock.c
+++ b/arch/s390/lib/spinlock.c
@@ -133,7 +133,7 @@ int arch_spin_trylock_retry(arch_spinlock_t *lp)
int count;
for (count = spin_retry; count > 0; count--) {
- owner = ACCESS_ONCE(lp->lock);
+ owner = READ_ONCE(lp->lock);
/* Try to get the lock if it is free. */
if (!owner) {
if (_raw_compare_and_swap(&lp->lock, 0, cpu))