author: Peter Zijlstra <peterz@infradead.org> 2020-01-24 22:13:03 +0100
committer: Thomas Gleixner <tglx@linutronix.de> 2020-06-11 08:03:24 +0200
commit: 37f8173dd84936ea78000ed1cad24f8b18d48ebb
parent: 765dcd209947e7b3666c08fb109ab8b879f7a471
Commit Summary:
Diffstat:
1 file changed, 3 insertions, 3 deletions
diff --git a/scripts/atomic/fallbacks/dec_if_positive b/scripts/atomic/fallbacks/dec_if_positive
index cfb380bd2da6..527adec89c37 100755
--- a/scripts/atomic/fallbacks/dec_if_positive
+++ b/scripts/atomic/fallbacks/dec_if_positive
@@ -1,14 +1,14 @@
cat <<EOF
static __always_inline ${ret}
-${atomic}_dec_if_positive(${atomic}_t *v)
+${arch}${atomic}_dec_if_positive(${atomic}_t *v)
{
- ${int} dec, c = ${atomic}_read(v);
+ ${int} dec, c = ${arch}${atomic}_read(v);
do {
dec = c - 1;
if (unlikely(dec < 0))
break;
- } while (!${atomic}_try_cmpxchg(v, &c, dec));
+ } while (!${arch}${atomic}_try_cmpxchg(v, &c, dec));
return dec;
}