mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
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 <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Don Zickus <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
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 */
|