x86: fix typo in 32-bit cmpxchg_double_local implementation
PATCH 1/1 x86: fix typo in 32-bit cmpxchg_double_local implementation
32-bit has no cmpxchg16b_local; only 8b. This looks like it was copied from the 64-bit code without adjustment and should resemble cmpxchg_double as defined in this same file.
Introduced in commit 3824abd1279ef7.
Signed-off-by Dan McGee <[email protected]>
--- arch/x86/include/asm/cmpxchg_32.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/include/asm/cmpxchg_32.h +1 -1
@@ -323,7 +323,7 @@ static inline unsigned long cmpxchg_386(volatile void *ptr, unsigned long old, ({ \BUILD_BUG_ON (sizeof (*(ptr)) !=4 ); \VM_BUG_ON ((unsigned long )(ptr) %8 ); \ -cmpxchg16b_local ((ptr), (o1), (o2), (n1), (n2)); \ +cmpxchg8b_local ((ptr), (o1), (o2), (n1), (n2)); \ })#define system_has_cmpxchg_double () cpu_has_cx8
Signature · 1 line
1.7.7