x86, cmpxchg: Unify cmpxchg into cmpxchg.h
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 18 Aug 2011 18:48:06 +0000 (11:48 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 29 Aug 2011 20:42:10 +0000 (13:42 -0700)
commite9826380d83d1bda3ee5663bf3fa4667a6fbe60a
treef7de160fc158e87f8bd78d67a4f0c43bf4356b4c
parent00a41546e8008b9944382eed1841c785f4fc8d9c
x86, cmpxchg: Unify cmpxchg into cmpxchg.h

Everything that's actually common between 32 and 64-bit is moved into
cmpxchg.h.

xchg/cmpxchg will fail with a link error if they're passed an
unsupported size (which includes 64-bit args on 32-bit systems).

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.h
arch/x86/include/asm/cmpxchg_32.h
arch/x86/include/asm/cmpxchg_64.h