[CRIU] [PATCH 3/5] x86: atomic -- Switch to linux kernel templates
Cyrill Gorcunov
gorcunov at openvz.org
Thu Aug 15 04:14:21 EDT 2013
Use same code as provided in kernel. In first place
we used own prototypes in case of simplicity (they
all were based on "lock xadd" instruction. There is
no more need for that and we can switch to well known
kernel's api.
Because kernel uses plain int type to carry atomic
counters I had to add explicit u32 type for futexes,
as well as a couple of fixes for new api usage.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
arch/arm/include/asm/atomic.h | 8 +--
arch/x86/include/asm/atomic.h | 122 ++++++++++++++++++++++++------------------
include/lock.h | 28 +++++-----
stats.c | 2 +-
4 files changed, 89 insertions(+), 71 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-x86-atomic-Switch-to-linux-kernel-templates.patch
Type: text/x-patch
Size: 7863 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130815/fc4380ed/attachment-0001.bin>
More information about the CRIU
mailing list