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
This commit is contained in:
Emmanuel Vadot 2022-08-02 10:08:33 +02:00
parent d1c3cfd79d
commit eca2f0f380

View File

@ -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_ */