summaryrefslogtreecommitdiffstats
path: root/scripts/atomic/atomics.tbl
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2023-03-23 21:55:30 +0100
committerPeter Zijlstra <peterz@infradead.org>2023-03-28 10:39:29 +0200
commite5ab9eff46b04c5a04778e40d7092fed3fda52ca (patch)
tree87cac8205ddaf1e0e81fba3be4f0e8d7dcf7f584 /scripts/atomic/atomics.tbl
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6 (diff)
downloadlinux-stable-e5ab9eff46b04c5a04778e40d7092fed3fda52ca.tar.gz
linux-stable-e5ab9eff46b04c5a04778e40d7092fed3fda52ca.tar.bz2
linux-stable-e5ab9eff46b04c5a04778e40d7092fed3fda52ca.zip
atomics: Provide atomic_add_negative() variants
atomic_add_negative() does not provide the relaxed/acquire/release variants. Provide them in preparation for a new scalable reference count algorithm. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/20230323102800.101763813@linutronix.de
Diffstat (limited to 'scripts/atomic/atomics.tbl')
-rw-r--r--scripts/atomic/atomics.tbl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/atomic/atomics.tbl b/scripts/atomic/atomics.tbl
index fbee2f6190d9..85ca8d9b5c27 100644
--- a/scripts/atomic/atomics.tbl
+++ b/scripts/atomic/atomics.tbl
@@ -33,7 +33,7 @@ try_cmpxchg B v p:old i:new
sub_and_test b i v
dec_and_test b v
inc_and_test b v
-add_negative b i v
+add_negative B i v
add_unless fb v i:a i:u
inc_not_zero b v
inc_unless_negative b v