barrier.h 572 B

123456789101112131415
  1. #ifndef _TOOLS_LINUX_ASM_TILE_BARRIER_H
  2. #define _TOOLS_LINUX_ASM_TILE_BARRIER_H
  3. /*
  4. * FIXME: This came from tools/perf/perf-sys.h, where it was first introduced
  5. * in 620830b6954913647b7c7f68920cf48eddf6ad92, more work needed to make it
  6. * more closely follow the Linux kernel arch/tile/include/asm/barrier.h file.
  7. * Probably when we continue work on tools/ Kconfig support to have all the
  8. * CONFIG_ needed for properly doing that.
  9. */
  10. #define mb() asm volatile ("mf" ::: "memory")
  11. #define wmb() mb()
  12. #define rmb() mb()
  13. #endif /* _TOOLS_LINUX_ASM_TILE_BARRIER_H */