]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
atomic: replace atomic_compareandswap() with atomic_cmpxchg()
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 29 Jan 2016 16:51:15 +0000 (17:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 29 Jan 2016 16:51:15 +0000 (17:51 +0100)
commite0efc073816369fbf304a55600b3e41fb1e8aaae
treea8f3ac8b6d69773fc278cd38eadefe289b502bf3
parent7ff56b7e4d2d110db93124457cbbdb8c6bee08e6
atomic: replace atomic_compareandswap() with atomic_cmpxchg()

atomic_compareandswap() used atomic_t as the new, old and returned
values which is less convenient than using just int.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/domain.c
xen/include/asm-arm/atomic.h
xen/include/asm-x86/atomic.h
xen/include/xen/sched.h