]> git.baikalelectronics.ru Git - kernel.git/commit
atomics: Allow architectures to define their own __atomic_op_* helpers
authorBoqun Feng <boqun.feng@gmail.com>
Tue, 15 Dec 2015 14:24:14 +0000 (22:24 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 17 Feb 2016 13:11:02 +0000 (00:11 +1100)
commitd7f26ce304e0c45fe7a6e441bc05a359bf901cfb
tree136a0781bf5788d595c85b887deef198ccaae789
parentac9f6344bc096ec73c7a3a0807be3797c1a14e81
atomics: Allow architectures to define their own __atomic_op_* helpers

Some architectures may have their special barriers for acquire, release
and fence semantics, so that general memory barriers(smp_mb__*_atomic())
in the default __atomic_op_*() may be too strong, so allow architectures
to define their own helpers which can overwrite the default helpers.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
include/linux/atomic.h