twx-linux/arch/blackfin/include/asm
Peter Zijlstra e87fc0ec07 locking/atomic, arch/blackfin: 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: Steven Miao <realmz6@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: adi-buildroot-devel@lists.sourceforge.net
Cc: linux-arch@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2016-06-16 10:48:23 +02:00
..
asm-offsets.h
atomic.h locking/atomic, arch/blackfin: Implement atomic_fetch_{add,sub,and,or,xor}() 2016-06-16 10:48:23 +02:00
barrier.h blackfin: define __smp_xxx 2016-01-12 20:46:54 +02:00
bfin5xx_spi.h
bfin_can.h
bfin_dma.h
bfin_pfmon.h
bfin_ppi.h
bfin_sdh.h bf609: rsi: Add bf609 rsi MMR macro and board platform data. 2013-05-07 18:26:18 +08:00
bfin_serial.h serial: bfin: ctsrts: enfore Kconfig naming convention 2015-05-06 22:26:59 +02:00
bfin_simple_timer.h
bfin_sport3.h
bfin_sport.h
bfin_twi.h i2c: bfin-twi: remove unnecessary Blackfin SSYNC from the driver 2014-03-09 08:41:18 +01:00
bfin_watchdog.h
bfin-global.h
bfin-lq035q1.h
bfrom.h
bitops.h arch,blackfin: Convert smp_mb__*() 2014-04-18 11:40:34 +02:00
blackfin.h
bug.h
cache.h
cacheflush.h
cdef_LPBlackfin.h
checksum.h ipv4: Update parameters for csum_tcpudp_magic to their original types 2016-03-13 23:55:13 -04:00
clkdev.h clk: Add common __clk_get(), __clk_put() implementations 2013-12-04 17:19:44 +01:00
clocks.h
cmpxchg.h locking/cmpxchg, arch: Remove tas() definitions 2015-12-04 11:39:51 +01:00
context.S
cplb.h
cplbinit.h
cpu.h
def_LPBlackfin.h blackfin: Support L1 SRAM parity checking feature on bf60x 2014-01-29 15:12:20 +08:00
delay.h
dma-mapping.h dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00
dma.h Revert "blackfin: dma: current count mmr is read only" 2014-06-11 00:13:22 +08:00
dpmc.h
early_printk.h
elf.h
entry.h
exec.h
fixed_code.h
flat.h
ftrace.h ftrace: Make CALLER_ADDRx macros more generic 2014-05-21 03:10:32 -04:00
gpio.h blackfin: adi gpio driver and pinctrl driver support 2013-11-15 17:33:42 +08:00
gptimers.h
hardirq.h hardirq: Make hardirq bits generic 2013-11-13 20:21:46 +01:00
io.h blackfin: Fix build error 2015-06-10 10:19:24 -07:00
ipipe_base.h
ipipe.h blackfin: Replace __get_cpu_var uses 2014-08-26 13:45:55 -04:00
irq_handler.h genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
irq.h pinctrl: Move pint PM storage structure out of blackfin architecture. 2014-02-10 10:13:08 +01:00
irqflags.h
Kbuild Merge branch 'strscpy' of git://git.kernel.org/pub/scm/linux/kernel/git/cmetcalf/linux-tile 2015-10-04 16:31:13 +01:00
kgdb.h
l1layout.h
linkage.h
mem_init.h
mem_map.h
mmu_context.h
mmu.h
module.h
nand.h
nmi.h
page_offset.h
page.h
pci.h PCI: Move pci_dma_* helpers to common code 2016-03-07 10:40:02 -06:00
pda.h
perf_event.h
pgtable.h blackfin: define dummy pgprot_writecombine for !MMU 2016-03-15 16:55:16 -07:00
pm.h
portmux.h blackfin: portmux: cleanup head file 2014-04-12 08:46:32 +08:00
processor.h exit_thread: remove empty bodies 2016-05-20 17:58:30 -07:00
pseudo_instructions.h
ptrace.h
reboot.h
rwlock.h
scb.h blackfin: scb: Add system crossbar init code. 2013-09-13 10:42:27 +08:00
sections.h
segment.h
smp.h
spinlock_types.h
spinlock.h locking/spinlock, arch: Update and fix spin_unlock_wait() implementations 2016-06-14 11:55:15 +02:00
string.h
switch_to.h
syscall.h
thread_info.h blackfin: Remove exec_domain usage 2015-04-12 20:58:24 +02:00
time.h
timex.h
tlb.h
tlbflush.h
trace.h
traps.h
uaccess.h put the remnants of ..._user_ret() to rest 2016-01-04 10:28:06 -05:00
unistd.h sys_sgetmask/sys_ssetmask: add CONFIG_SGETMASK_SYSCALL 2014-06-04 16:54:14 -07:00