]> 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)
commiteeb1112f863694ecec1124dda90c21f91ccb8fd1
tree8bd44a9893de75dde44a568294e510ae4aef87ab
parentff04ca9cddf6a41e99e8fa5227d50e80d77c3fe6
ARC: remove redundant READ_ONCE() in cmpxchg loop

This patch reverts commit 79df77c46a29 ("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 dc2aabacd432 ("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