Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, cmpxchg: Move 64-bit set64_bit() to match 32-bit

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>

authored by

Jeremy Fitzhardinge and committed by
H. Peter Anvin
00a41546 416185bd

+5 -5
+5 -5
arch/x86/include/asm/cmpxchg_64.h
··· 3 3 4 4 #include <asm/alternative.h> /* Provides LOCK_PREFIX */ 5 5 6 - static inline void set_64bit(volatile u64 *ptr, u64 val) 7 - { 8 - *ptr = val; 9 - } 10 - 11 6 extern void __xchg_wrong_size(void); 12 7 extern void __cmpxchg_wrong_size(void); 13 8 ··· 60 65 61 66 #define xchg(ptr, v) \ 62 67 __xchg((v), (ptr), sizeof(*ptr)) 68 + 69 + static inline void set_64bit(volatile u64 *ptr, u64 val) 70 + { 71 + *ptr = val; 72 + } 63 73 64 74 #define __HAVE_ARCH_CMPXCHG 1 65 75