git: eca2f0f38066 - main - linuxkpi: Add smp_mb__before/after_atomic
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Aug 2022 14:04:25 UTC
The branch main has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=eca2f0f3806647f165162e6db35d1af9aba410fa
commit eca2f0f3806647f165162e6db35d1af9aba410fa
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-08-02 08:08:33 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-08-08 13:22:35 +0000
linuxkpi: Add smp_mb__before/after_atomic
Reviewed by: hselasky
Obtained from: drm-kmod
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36020
---
sys/compat/linuxkpi/common/include/asm/barrier.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/compat/linuxkpi/common/include/asm/barrier.h b/sys/compat/linuxkpi/common/include/asm/barrier.h
index 12b4736e1939..ab59ff19dee0 100644
--- a/sys/compat/linuxkpi/common/include/asm/barrier.h
+++ b/sys/compat/linuxkpi/common/include/asm/barrier.h
@@ -55,4 +55,7 @@
#define smp_store_mb(x, v) do { WRITE_ONCE(x, v); smp_mb(); } while (0)
#endif
+#define smp_mb__before_atomic() barrier()
+#define smp_mb__after_atomic() barrier()
+
#endif /* _LINUXKPI_ASM_BARRIER_H_ */