]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd6149bd593733e9aa18f3dd555eafdc1cf7c2fd8
treef96a8826877e4c28fdc40f6e1aa4a1cf42187e22
parent4315688d16be8c7b66e372ae1095ea6da9628d05
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