diff options
author | Peter Zijlstra <peterz@infradead.org> | 2014-04-23 19:40:25 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-07-27 14:06:23 +0200 |
commit | 304a0d699a3c6103b61d5ea18d56820e7d8e3116 (patch) | |
tree | dd0166235d2a1dc0c7a152e6faa825d2794cc3a0 /arch/sparc/lib/ksyms.c | |
parent | 658aa51459c2f5284183d35b6dd0beca0e0bfe2f (diff) | |
download | linux-304a0d699a3c6103b61d5ea18d56820e7d8e3116.tar.gz linux-304a0d699a3c6103b61d5ea18d56820e7d8e3116.tar.bz2 linux-304a0d699a3c6103b61d5ea18d56820e7d8e3116.zip |
sparc: Provide atomic_{or,xor,and}
Implement atomic logic ops -- atomic_{or,xor,and}.
These will replace the atomic_{set,clear}_mask functions that are
available on some archs.
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/sparc/lib/ksyms.c')
-rw-r--r-- | arch/sparc/lib/ksyms.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc/lib/ksyms.c b/arch/sparc/lib/ksyms.c index 1d649a95660c..bb6005997268 100644 --- a/arch/sparc/lib/ksyms.c +++ b/arch/sparc/lib/ksyms.c @@ -111,6 +111,9 @@ EXPORT_SYMBOL(atomic64_##op##_return); ATOMIC_OPS(add) ATOMIC_OPS(sub) +ATOMIC_OP(and) +ATOMIC_OP(or) +ATOMIC_OP(xor) #undef ATOMIC_OPS #undef ATOMIC_OP_RETURN |