]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
x86, cmpxchg: Move 64-bit set64_bit() to match 32-bit
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 18 Aug 2011 18:40:22 +0000 (11:40 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 29 Aug 2011 20:41:40 +0000 (13:41 -0700)
Reduce arbitrary differences between 32 and 64 bits.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Link: http://lkml.kernel.org/r/4E5BCC40.3030501@goop.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/cmpxchg_64.h

index 7cf5c0a2443405532b274e872b7e2063ab57de8e..5bfa560ef14ead2aedd7d310225292c93263628f 100644 (file)
@@ -3,11 +3,6 @@
 
 #include <asm/alternative.h> /* Provides LOCK_PREFIX */
 
-static inline void set_64bit(volatile u64 *ptr, u64 val)
-{
-       *ptr = val;
-}
-
 extern void __xchg_wrong_size(void);
 extern void __cmpxchg_wrong_size(void);
 
@@ -66,6 +61,11 @@ extern void __cmpxchg_wrong_size(void);
 #define xchg(ptr, v)                                                   \
        __xchg((v), (ptr), sizeof(*ptr))
 
+static inline void set_64bit(volatile u64 *ptr, u64 val)
+{
+       *ptr = val;
+}
+
 #define __HAVE_ARCH_CMPXCHG 1
 
 /*