]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: remove redundant READ_ONCE() in cmpxchg loop
authorBang Li <libang.linuxer@gmail.com>
Sat, 19 Mar 2022 02:03:16 +0000 (10:03 +0800)
committerVineet Gupta <vgupta@kernel.org>
Mon, 18 Apr 2022 21:47:05 +0000 (14:47 -0700)
commitf87620878cfae05c2b99e2b18b30f228781ed746
tree8bd44a9893de75dde44a568294e510ae4aef87ab
parent65e6827dd755b06cd7dfbbdcf6e819be078f69f4
ARC: remove redundant READ_ONCE() in cmpxchg loop

This patch reverts commit 5ccd8ff2a318 ("ARC: use ACCESS_ONCE in cmpxchg
loop").

It is not necessary to use READ_ONCE() because cmpxchg contains barrier. We
can get it from commit 812d5a6f172e ("ARC: add compiler barrier to LLSC
based cmpxchg").

Signed-off-by: Bang Li <libang.linuxer@gmail.com>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
arch/arc/kernel/smp.c