linux/arch/h8300
Peter Zijlstra 0c074cbc33 locking/atomic, arch/h8300: Implement atomic_fetch_{add,sub,and,or,xor}()
Implement FETCH-OP atomic primitives, these are very similar to the
existing OP-RETURN primitives we already have, except they return the
value of the atomic variable _before_ modification.

This is especially useful for irreversible operations -- such as
bitops (because it becomes impossible to reconstruct the state prior
to modification).

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: linux-arch@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: uclinux-h8-devel@lists.sourceforge.jp
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2016-06-16 10:48:24 +02:00
..
boot kbuild: delete unnecessary "@:" 2016-04-20 10:36:57 +02:00
configs h8300: switch EARLYCON 2016-03-25 01:45:19 +09:00
include locking/atomic, arch/h8300: Implement atomic_fetch_{add,sub,and,or,xor}() 2016-06-16 10:48:24 +02:00
kernel h8300: switch EARLYCON 2016-03-25 01:45:19 +09:00
lib h8300: library functions 2015-06-23 13:35:54 +09:00
mm h8300: Memory management 2015-06-23 13:35:53 +09:00
Kconfig Merge branch 'hash' of git://ftp.sciencehorizons.net/linux 2016-05-28 16:15:25 -07:00
Kconfig.cpu h8300: Build scripts 2015-06-23 13:35:54 +09:00
Makefile h8300: Don't set CROSS_COMPILE unconditionally 2015-11-08 22:44:43 +09:00