summaryrefslogtreecommitdiff
path: root/scripts/atomic/gen-atomic-long.sh
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2021-07-13 11:52:52 +0100
committerPeter Zijlstra <peterz@infradead.org>2021-07-16 18:46:45 +0200
commit67d1b0de258ad066e1fc85d0ceaa75e107fb45bb (patch)
tree6b566ab5fc960e44ddfd558b97ac5f381440ec35 /scripts/atomic/gen-atomic-long.sh
parente3d18cee258b898017b298b5b93f8134dd62aee3 (diff)
locking/atomic: add arch_atomic_long*()
Now that all architectures provide arch_{atomic,atomic64}_*(), we can build arch_atomic_long_*() atop these, which can be safely used in noinstr code. The regular atomic_long_*() wrappers are built atop these, as we do for {atomic,atomic64}_*() atop arch_{atomic,atomic64}_*(). We don't provide arch_* versions of the cond_read*() variants, as we don't have arch_* versions of the underlying atomic/atomic64 functions (nor the smp_cond_load*() helpers these are typically based on). Note that the headers in this patch under include/linux/atomic/ are generated by the scripts in scripts/atomic/. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20210713105253.7615-5-mark.rutland@arm.com
Diffstat (limited to 'scripts/atomic/gen-atomic-long.sh')
-rwxr-xr-xscripts/atomic/gen-atomic-long.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/atomic/gen-atomic-long.sh b/scripts/atomic/gen-atomic-long.sh
index db69572609df..eda89cea6e1d 100755
--- a/scripts/atomic/gen-atomic-long.sh
+++ b/scripts/atomic/gen-atomic-long.sh
@@ -47,9 +47,9 @@ gen_proto_order_variant()
cat <<EOF
static __always_inline ${ret}
-atomic_long_${name}(${params})
+arch_atomic_long_${name}(${params})
{
- ${retstmt}${atomic}_${name}(${argscast});
+ ${retstmt}arch_${atomic}_${name}(${argscast});
}
EOF