commit | eb0ad608bf9e9a196658ee647cb9677bcebe7a7b | [log] [tgz] |
---|---|---|
author | Jan Stancek <jstancek@redhat.com> | Wed Apr 13 13:14:25 2016 +0200 |
committer | Jan Stancek <jstancek@redhat.com> | Tue Apr 19 11:03:41 2016 +0200 |
tree | fd71155100bd87456e041d7cecefdc6dd6ad1056 | |
parent | f61391ed6b9711b73aca7e84b230ee2b38075917 [diff] |
tst_atomic: add atomic_add_return for x86/64, ppc/64 and s390/x In case __sync_add_and_fetch is not provided by compiler, we try to supply our own implementation. It has been taken from kernel 4.5 sources, by compiling a small piece of code (atomic_add_return()) with "gcc -E" and applying some formatting to make it more readable/pretty. Signed-off-by: Jan Stancek <jstancek@redhat.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>