]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: consolidate xchg and xadd macros
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 30 Sep 2011 19:14:10 +0000 (12:14 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Fri, 30 Sep 2011 22:35:19 +0000 (15:35 -0700)
commit2025910ce6be554d5d47985f0144ad5e5212886d
treef96a8826877e4c28fdc40f6e1aa4a1cf42187e22
parent2785f96a04742c7e8ea23ffd8a96ce044970686c
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.fitzhardinge@citrix.com>
arch/x86/include/asm/cmpxchg.h