diff options
author | Eric Chan <ericchancf@google.com> | 2024-02-17 13:13:02 +0000 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2024-03-19 18:52:23 -0700 |
commit | b3c8064ccc447be45a3bdc2c4a9ea0491f011920 (patch) | |
tree | 1b3c8d45dbac207efd5bde0a529fe1a41410539b /arch/riscv/include/asm/mmiowb.h | |
parent | 89f4fd7b1ab7733d9d817e7123c58996ca38ae98 (diff) |
riscv/barrier: Define RISCV_FULL_BARRIER
Introduce RISCV_FULL_BARRIER and use in arch_atomic* function.
like RISCV_ACQUIRE_BARRIER and RISCV_RELEASE_BARRIER, the fence
instruction can be eliminated When SMP is not enabled.
Signed-off-by: Eric Chan <ericchancf@google.com>
Reviewed-by: Andrea Parri <parri.andrea@gmail.com>
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Tested-by: Samuel Holland <samuel.holland@sifive.com>
Link: https://lore.kernel.org/r/20240217131302.3668481-1-ericchancf@google.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/include/asm/mmiowb.h')
0 files changed, 0 insertions, 0 deletions