We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e01cc1e commit 636d6a8Copy full SHA for 636d6a8
arch/x86/include/asm/cmpxchg.h
@@ -221,12 +221,18 @@ extern void __add_wrong_size(void)
221
#define __try_cmpxchg(ptr, pold, new, size) \
222
__raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX)
223
224
+#define __sync_try_cmpxchg(ptr, pold, new, size) \
225
+ __raw_try_cmpxchg((ptr), (pold), (new), (size), "lock; ")
226
+
227
#define __try_cmpxchg_local(ptr, pold, new, size) \
228
__raw_try_cmpxchg((ptr), (pold), (new), (size), "")
229
230
#define arch_try_cmpxchg(ptr, pold, new) \
231
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
232
233
+#define arch_sync_try_cmpxchg(ptr, pold, new) \
234
+ __sync_try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
235
236
#define arch_try_cmpxchg_local(ptr, pold, new) \
237
__try_cmpxchg_local((ptr), (pold), (new), sizeof(*(ptr)))
238
0 commit comments