summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorCharlie Jenkins <charlie@rivosinc.com>2024-08-06 15:01:23 -0700
committerPalmer Dabbelt <palmer@rivosinc.com>2024-09-20 01:46:46 -0700
commit6d74d178fe6eaf61e384f3be6ba64150bddce8a6 (patch)
tree9608f3224320f73c7548473575813860f42a0c99 /tools/include
parent8400291e289ee6b2bf9779ff1c83a291501f017b (diff)
tools: Add riscv barrier implementation
Many of the other architectures use their custom barrier implementations. Use the barrier code from the kernel sources to optimize barriers in tools. Signed-off-by: Charlie Jenkins <charlie@rivosinc.com> Reviewed-by: Andrea Parri <parri.andrea@gmail.com> Link: https://lore.kernel.org/r/20240806-optimize_ring_buffer_read_riscv-v2-1-ca7e193ae198@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/asm/barrier.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/asm/barrier.h b/tools/include/asm/barrier.h
index 8d378c57cb01..0c21678ac5e6 100644
--- a/tools/include/asm/barrier.h
+++ b/tools/include/asm/barrier.h
@@ -8,6 +8,8 @@
#include "../../arch/arm64/include/asm/barrier.h"
#elif defined(__powerpc__)
#include "../../arch/powerpc/include/asm/barrier.h"
+#elif defined(__riscv)
+#include "../../arch/riscv/include/asm/barrier.h"
#elif defined(__s390__)
#include "../../arch/s390/include/asm/barrier.h"
#elif defined(__sh__)