]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tools include: Provide gcc based cmpxchg fallback for !x86
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 23 Feb 2017 18:33:02 +0000 (15:33 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Mar 2017 22:07:14 +0000 (19:07 -0300)
commited4aad50ea0384737034b39f952f29cfb2da52ac
tree1603e24ea3afad82d27138c65b3d8ece9e9497f1
parent2bcdeadbc094b4f6511aedea1e5b8052bf0cc89c
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>
tools/include/asm-generic/atomic-gcc.h