commit | e1ab7f39d7e0dbfbdefe148be3ae4ee121e47ecc | [log] [tgz] |
---|---|---|
author | Boqun Feng <boqun.feng@gmail.com> | Tue Dec 15 22:24:14 2015 +0800 |
committer | Michael Ellerman <mpe@ellerman.id.au> | Thu Feb 18 00:11:02 2016 +1100 |
tree | 136a0781bf5788d595c85b887deef198ccaae789 | |
parent | 78c1cffdab7e5fc316be7d6a076e51ec3a0210fc [diff] |
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>