File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,18 @@ ATOMIC64_DECL(add_unless);
61
61
#undef __ATOMIC64_DECL
62
62
#undef ATOMIC64_EXPORT
63
63
64
- static __always_inline s64 arch_atomic64_cmpxchg (atomic64_t * v , s64 o , s64 n )
64
+ static __always_inline s64 arch_atomic64_cmpxchg (atomic64_t * v , s64 old , s64 new )
65
65
{
66
- return arch_cmpxchg64 (& v -> counter , o , n );
66
+ return arch_cmpxchg64 (& v -> counter , old , new );
67
67
}
68
68
#define arch_atomic64_cmpxchg arch_atomic64_cmpxchg
69
69
70
+ static __always_inline bool arch_atomic64_try_cmpxchg (atomic64_t * v , s64 * old , s64 new )
71
+ {
72
+ return arch_try_cmpxchg64 (& v -> counter , old , new );
73
+ }
74
+ #define arch_atomic64_try_cmpxchg arch_atomic64_try_cmpxchg
75
+
70
76
static __always_inline s64 arch_atomic64_xchg (atomic64_t * v , s64 n )
71
77
{
72
78
s64 o ;
You can’t perform that action at this time.
0 commit comments