x86: consolidate xchg and xadd macros
authorJeremy Fitzhardinge <jeremy@goop.org>
Fri, 30 Sep 2011 19:14:10 +0000 (12:14 -0700)
committerJeremy Fitzhardinge <jeremy@goop.org>
Fri, 25 Nov 2011 18:43:12 +0000 (10:43 -0800)
commit31a8394e069e47dc47f4c29e4213aa943342f19f
treef96a8826877e4c28fdc40f6e1aa4a1cf42187e22
parent3d94ae0c70a71a9824479366775e2c7679a57d94
x86: consolidate xchg and xadd macros

They both have a basic "put new value in location, return old value"
pattern, so they can use the same macro easily.

Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
arch/x86/include/asm/cmpxchg.h