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