]> 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)
commit2e356eb3e18d46cbd1f1d729a52884881b7728f0
treef96a8826877e4c28fdc40f6e1aa4a1cf42187e22
parent3958687fdbc13d87ad9fcb976d23f5515a908e7c
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