summaryrefslogtreecommitdiff
path: root/tools/include/asm/atomic.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/include/asm/atomic.h')
-rw-r--r--tools/include/asm/atomic.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/include/asm/atomic.h b/tools/include/asm/atomic.h
new file mode 100644
index 000000000000..70794f538a86
--- /dev/null
+++ b/tools/include/asm/atomic.h
@@ -0,0 +1,10 @@
+#ifndef __TOOLS_LINUX_ASM_ATOMIC_H
+#define __TOOLS_LINUX_ASM_ATOMIC_H
+
+#if defined(__i386__) || defined(__x86_64__)
+#include "../../arch/x86/include/asm/atomic.h"
+#else
+#include <asm-generic/atomic-gcc.h>
+#endif
+
+#endif /* __TOOLS_LINUX_ASM_ATOMIC_H */