Re: [v6, 1/4] atomics: Allow architectures to define their own __atomic_op_* helpers

2016-02-22 Thread Michael Ellerman
On Tue, 2015-15-12 at 14:24:14 UTC, Boqun Feng wrote: > 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

[PATCH v6 1/4] atomics: Allow architectures to define their own __atomic_op_* helpers

2015-12-15 Thread Boqun Feng
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-