kernel_optimize_test/arch/hexagon
Peter Zijlstra 4be7dd3935 locking/atomic, arch/hexagon: 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: Richard Kuo <rkuo@codeaurora.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-arch@vger.kernel.org
Cc: linux-hexagon@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2016-06-16 10:48:25 +02:00
..
configs Hexagon: Comet platform support 2011-11-01 07:34:21 -07:00
include locking/atomic, arch/hexagon: Implement atomic_fetch_{add,sub,and,or,xor}() 2016-06-16 10:48:25 +02:00
kernel vdso: make arch_setup_additional_pages wait for mmap_sem for write killable 2016-05-23 17:04:14 -07:00
lib hexagon: Fix misspellings in comments. 2016-04-18 12:45:54 +02:00
mm hexagon: Fix build failures in linux-next 2014-12-16 13:27:12 -06:00
Kconfig dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00
Makefile Hexagon: change arch version config to allow comparisons 2013-04-30 19:40:22 -05:00