linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86: fix typo in 32-bit cmpxchg_double_local implementation
@ 2011-10-27 19:00 Dan McGee
  0 siblings, 0 replies; only message in thread
From: Dan McGee @ 2011-10-27 19:00 UTC (permalink / raw)
  To: linux-kernel

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 <dpmcgee@gmail.com>
---
 arch/x86/include/asm/cmpxchg_32.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/include/asm/cmpxchg_32.h b/arch/x86/include/asm/cmpxchg_32.h
index 3deb725..14b74b5 100644
--- a/arch/x86/include/asm/cmpxchg_32.h
+++ b/arch/x86/include/asm/cmpxchg_32.h
@@ -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
-- 
1.7.7


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-27 19:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-27 19:00 [PATCH] x86: fix typo in 32-bit cmpxchg_double_local implementation Dan McGee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).