Mark Rutland
cd04eb1154
UPSTREAM: atomics/alpha: Define atomic64_fetch_add_unless()
...
As a step towards unifying the atomic/atomic64/atomic_long APIs, this
patch converts the arch/alpha implementation of atomic64_add_unless() into
an implementation of atomic64_fetch_add_unless().
A wrapper in <linux/atomic.h> will build atomic_add_unless() atop of
this, provided it is given a preprocessor definition.
No functional change is intended as a result of this patch.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Turner <mattst88@gmail.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/lkml/20180621121321.4761-10-mark.rutland@arm.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sorayukii <sorayukii69@gmail.com>
2026-05-15 17:59:15 +07:00
..
a.out-core.h
a.out.h
UAPI: (Scripted) Disintegrate arch/alpha/include/asm
2012-12-17 14:12:19 +00:00
agp.h
agp_backend.h
asm-offsets.h
atomic.h
UPSTREAM: atomics/alpha: Define atomic64_fetch_add_unless()
2026-05-15 17:59:15 +07:00
barrier.h
arch: Cleanup read_barrier_depends() and comments
2014-12-11 21:15:05 -05:00
bitops.h
arch,alpha: Convert smp_mb__*() to the asm-generic primitives
2014-04-18 11:40:31 +02:00
bug.h
bugs.h
cache.h
cacheflush.h
checksum.h
ipv6: Pass proto to csum_ipv6_magic as __u8 instead of unsigned short
2016-03-13 23:55:13 -04:00
cmpxchg.h
arch: Remove __ARCH_HAVE_CMPXCHG
2015-05-13 10:55:42 +02:00
compiler.h
UAPI: (Scripted) Disintegrate arch/alpha/include/asm
2012-12-17 14:12:19 +00:00
console.h
UAPI: (Scripted) Disintegrate arch/alpha/include/asm
2012-12-17 14:12:19 +00:00
core_apecs.h
core_cia.h
core_irongate.h
core_lca.h
Disintegrate asm/system.h for Alpha
2012-03-28 18:11:12 +01:00
core_marvel.h
core_mcpcia.h
Disintegrate asm/system.h for Alpha
2012-03-28 18:11:12 +01:00
core_polaris.h
core_t2.h
Disintegrate asm/system.h for Alpha
2012-03-28 18:11:12 +01:00
core_titan.h
core_tsunami.h
core_wildfire.h
current.h
delay.h
device.h
div64.h
dma-mapping.h
dma-mapping: use unsigned long for dma_attrs
2016-08-04 08:50:07 -04:00
dma.h
elf.h
Disintegrate asm/system.h for Alpha
2012-03-28 18:11:12 +01:00
emergency-restart.h
err_common.h
err_ev6.h
err_ev7.h
fb.h
floppy.h
alpha: irq: remove deprecated use of IRQF_DISABLED
2013-04-07 12:59:30 -07:00
fpu.h
UAPI: (Scripted) Disintegrate arch/alpha/include/asm
2012-12-17 14:12:19 +00:00
ftrace.h
futex.h
futex: Remove duplicated code and fix undefined behaviour
2018-05-19 10:27:00 +02:00
gct.h
hardirq.h
hw_irq.h
hwrpb.h
io.h
alpha: Declare virt_to_phys and virt_to_bus parameter as pointer to volatile
2021-10-06 10:23:40 +02:00
io_trivial.h
irq.h
alpha: Fix Eiger NR_IRQS to 128
2019-02-20 10:18:32 +01:00
irq_regs.h
irqflags.h
Disintegrate asm/system.h for Alpha
2012-03-28 18:11:12 +01:00
jensen.h
Kbuild
alpha: move exports to actual definitions
2016-08-07 23:47:18 -04:00
kdebug.h
kmap_types.h
linkage.h
consolidate cond_syscall and SYSCALL_ALIAS declarations
2013-03-03 22:55:19 -05:00
local.h
atomic: use <linux/atomic.h>
2011-07-26 16:49:47 -07:00
local64.h
machvec.h
alpha: Reorganize rtc handling
2013-11-16 16:33:16 -08:00
mc146818rtc.h
mce.h
Disintegrate asm/system.h for Alpha
2012-03-28 18:11:12 +01:00
mmu.h
mmu_context.h
Disintegrate asm/system.h for Alpha
2012-03-28 18:11:12 +01:00
mmzone.h
mm/ALPHA: clean up unused VALID_PAGE()
2013-07-03 16:07:39 -07:00
module.h
Make most arch asm/module.h files use asm-generic/module.h
2012-09-28 14:31:03 +09:30
mutex.h
page.h
pal.h
alpha: Use qemu+cserve provided high-res clock and alarm.
2013-11-16 16:33:21 -08:00
param.h
alpha: Force the user-visible HZ to a constant 1024.
2013-07-19 13:54:26 -07:00
parport.h
ALPHA: drivers: remove __dev* attributes.
2013-01-03 15:57:13 -08:00
pci.h
PCI: Move pci_dma_* helpers to common code
2016-03-07 10:40:02 -06:00
percpu.h
perf_event.h
pgalloc.h
tree wide: get rid of __GFP_REPEAT for order-0 allocations part I
2016-06-24 17:23:52 -07:00
pgtable.h
mm: make FIRST_USER_ADDRESS unsigned long on all archs
2015-02-11 17:06:03 -08:00
processor.h
alpha: forward declare struct pt_regs in processor.h
2015-04-17 09:03:53 -04:00
ptrace.h
alpha: Enable system-call auditing support.
2014-01-31 09:21:55 -08:00
rwsem.h
locking/rwsem: Remove rwsem_atomic_add() and rwsem_atomic_update()
2016-06-08 15:16:59 +02:00
segment.h
serial.h
serial: Fix ASYNC_* => UPF_* flags misuse
2016-01-28 14:17:42 -08:00
sfp-machine.h
shmparam.h
signal.h
consolidate kernel-side struct sigaction declarations
2013-02-03 15:09:22 -05:00
smp.h
Remove unused PROC_CHANGE_PENALTY constant
2011-05-25 08:39:43 -07:00
socket.h
UAPI: (Scripted) Disintegrate arch/alpha/include/asm
2012-12-17 14:12:19 +00:00
special_insns.h
Disintegrate asm/system.h for Alpha
2012-03-28 18:11:12 +01:00
spinlock.h
locking/spinlock, arch: Update and fix spin_unlock_wait() implementations
2016-06-14 11:55:15 +02:00
spinlock_types.h
string.h
alpha: Eliminate compiler warning from memset macro
2013-11-16 16:33:09 -08:00
switch_to.h
Disintegrate asm/system.h for Alpha
2012-03-28 18:11:12 +01:00
syscall.h
Alpha: define syscall_get_arch()
2014-09-23 16:20:03 -04:00
termios.h
arch/alpha, termios: implement BOTHER, IBSHIFT and termios2
2018-11-21 09:26:00 +01:00
thread_info.h
BACKPORT: Construct init thread stack in the linker script rather than by union
2026-05-15 17:59:01 +07:00
timex.h
alpha: define get_cycles macro for arch-override
2022-06-25 11:45:13 +02:00
tlb.h
tlbflush.h
topology.h
types.h
alpha: uapi: Add support for __SANE_USERSPACE_TYPES__
2017-09-07 08:35:40 +02:00
uaccess.h
alpha: switch __copy_user() and __do_clean_user() to normal calling conventions
2021-03-17 16:10:18 +01:00
ucontext.h
unaligned.h
unistd.h
alpha: Wire up all missing implemented syscalls
2015-05-26 10:01:50 -07:00
user.h
vga.h
word-at-a-time.h
word-at-a-time.h: support zero_bytemask() on alpha and tile
2015-10-06 14:53:16 -04:00
wrperfmon.h
xchg.h
locking/xchg/alpha: Fix xchg() and cmpxchg() memory ordering bugs
2018-05-30 07:50:30 +02:00
xor.h