riscv/atomic.h: use RISCV_FULL_BARRIER in _arch_atomic* function.

Replace the same code with the pre-defined macro
RISCV_FULL_BARRIER to simplify the code.

Signed-off-by: Zongmin Zhou <zhouzongmin@kylinos.cn>
Link: https://patch.msgid.link/20251120095831.64211-1-min_halo@163.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
This commit is contained in:
Zongmin Zhou 2025-11-20 17:58:31 +08:00 • committed by Paul Walmsley
commit f02dd25472