barrier.c 246 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <asm/barrier.h>
  3. __rust_helper void rust_helper_smp_mb(void)
  4. {
  5. smp_mb();
  6. }
  7. __rust_helper void rust_helper_smp_wmb(void)
  8. {
  9. smp_wmb();
  10. }
  11. __rust_helper void rust_helper_smp_rmb(void)
  12. {
  13. smp_rmb();
  14. }