git: 7c6c07fcef33 - stable/13 - linuxkpi: Add smp_mb__before/after_atomic
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Sep 2022 15:10:16 UTC
The branch stable/13 has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=7c6c07fcef33423201dcd80be3557769c05304fc
commit 7c6c07fcef33423201dcd80be3557769c05304fc
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-08-02 08:08:33 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-09-07 15:09:04 +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
(cherry picked from commit eca2f0f3806647f165162e6db35d1af9aba410fa)
---
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_ */