linux/tools/include/asm-generic
Arnaldo Carvalho de Melo ed4aad50ea tools include: Provide gcc based cmpxchg fallback for !x86
We've been using an atomic_t implementation subset based on the gcc
builtin functions for a while, now, with refcount.h we need cmpxchg(),
use gcc's __sync_val_compare_and_swap() for that.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Elena Reshetova <elena.reshetova@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-b9zovyxgpa0c4vi3nm0kjo97@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2017-03-03 19:07:14 -03:00
..
bitops radix tree test suite: Remove duplicate bitops code 2017-01-27 21:29:39 -05:00
atomic-gcc.h tools include: Provide gcc based cmpxchg fallback for !x86 2017-03-03 19:07:14 -03:00
barrier.h tools: Adopt asm-generic/barrier.h 2015-05-08 16:05:04 -03:00
bitops.h tools lib: Add for_each_clear_bit macro 2016-10-24 11:07:33 -03:00
bitsperlong.h tools: Simplify BITS_PER_LONG define 2016-07-15 17:26:41 -03:00