mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-11 21:14:07 +08:00
da6d856751
Uses the arch/x86/ kernel code for x86_64/i386, fallbacking to a gcc intrinsics implementation that has been tested in at least sparc64. Will be used for reference counting in tools/perf. Acked-by: David Ahern <dsahern@gmail.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-knfpjowhgyh6x4z0kfuk389j@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
11 lines
253 B
C
11 lines
253 B
C
#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 */
|