- 01 Mar, 2010 3 commits
-
-
Luca Barbieri authored
atomic64_add_unless must return 1 if it perfomed the add and 0 otherwise. The test assumed the opposite convention. Reported-by:
H. Peter Anvin <hpa@zytor.com> Signed-off-by:
Luca Barbieri <luca@luca-barbieri.com> LKML-Reference: <1267469749-11878-2-git-send-email-luca@luca-barbieri.com> Signed-off-by:
H. Peter Anvin <hpa@zytor.com>
-
Luca Barbieri authored
Add support for atomic_dec_if_positive(), and atomic64_dec_if_positive() for x86-64. atomic64_dec_if_positive() for x86-32 was already implemented in a previous patch. Signed-off-by:
Luca Barbieri <luca@luca-barbieri.com> LKML-Reference: <1267183361-20775-2-git-send-email-luca@luca-barbieri.com> Signed-off-by:
H. Peter Anvin <hpa@zytor.com>
-
Luca Barbieri authored
Currently atomic64_dec_if_positive() is only supported by PowerPC, MIPS and x86-32. Signed-off-by:
Luca Barbieri <luca@luca-barbieri.com> LKML-Reference: <1267183361-20775-1-git-send-email-luca@luca-barbieri.com> Signed-off-by:
H. Peter Anvin <hpa@zytor.com>
-
- 26 Feb, 2010 1 commit
-
-
Luca Barbieri authored
This patch adds self-test on boot code for atomic64_t. This has been used to test the later changes in this patchset. Signed-off-by:
Luca Barbieri <luca@luca-barbieri.com> LKML-Reference: <1267005265-27958-4-git-send-email-luca@luca-barbieri.com> Signed-off-by:
H. Peter Anvin <hpa@zytor.com>
-