mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
We will need it for atomic.h, so move it from the ad-hoc tools/perf/ place to a tools/ subset of the kernel arch/ hierarchy. Cc: Adrian Hunter <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: David Ahern <[email protected]> Cc: Don Zickus <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
9 lines
296 B
C
9 lines
296 B
C
#ifndef __TOOLS_LINUX_ASM_ALPHA_BARRIER_H
|
|
#define __TOOLS_LINUX_ASM_ALPHA_BARRIER_H
|
|
|
|
#define mb() __asm__ __volatile__("mb": : :"memory")
|
|
#define rmb() __asm__ __volatile__("mb": : :"memory")
|
|
#define wmb() __asm__ __volatile__("wmb": : :"memory")
|
|
|
|
#endif /* __TOOLS_LINUX_ASM_ALPHA_BARRIER_H */
|