Date: Wed, 7 Sep 2022 15:10:16 GMT From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 7c6c07fcef33 - stable/13 - linuxkpi: Add smp_mb__before/after_atomic Message-ID: <202209071510.287FAGca023355@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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_ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209071510.287FAGca023355>