27 Jul, 2011
1 commit
-
This allows us to move duplicated code in
(atomic_inc_not_zero() for now) toSigned-off-by: Arun Sharma
Reviewed-by: Eric Dumazet
Cc: Ingo Molnar
Cc: David Miller
Cc: Eric Dumazet
Acked-by: Mike Frysinger
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
27 Jul, 2010
1 commit
-
ARM has support for the atomic64_dec_if_positive operation
so ensure that it is tested by the atomic64_test routine.Acked-by: Nicolas Pitre
Signed-off-by: Will Deacon
Signed-off-by: Russell King
05 Jun, 2010
1 commit
-
Add s390 to list of architectures that have atomic64_dec_if_positive
implemented so we get rid of this warning:lib/atomic64_test.c:129:2: warning: #warning Please implement
atomic64_dec_if_positive for your architecture, and add it to the IF aboveSigned-off-by: Heiko Carstens
Cc: Luca Barbieri
Cc: "H. Peter Anvin"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
25 May, 2010
1 commit
-
Fix a build-failure
(http://kisskb.ellerman.id.au/kisskb/buildresult/2601239/) by adding the
missing include file (linux/kernel.h) for printk and KERN_INFO.Signed-off-by: Peter Huewe
LKML-Reference:
Cc: Luca Barbieri
Cc: "H. Peter Anvin"
Signed-off-by: Andrew Morton
Signed-off-by: H. Peter Anvin
02 Mar, 2010
5 commits
-
The x86-64 implementation of the atomics is totally different from the
i586+ implementation, which makes it quite confusing to call it
"586+". Also fix indentation, and add "i" for "i386" and "i586" as
used elsewhere in the kernel.Signed-off-by: H. Peter Anvin
Cc: Luca Barbieri
LKML-Reference: -
atomic64_inc_not_zero must return 1 if it perfomed the add and 0 otherwise.
The test assumed the opposite convention.Signed-off-by: Luca Barbieri
LKML-Reference:
Signed-off-by: H. Peter Anvin -
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
Signed-off-by: Luca Barbieri
LKML-Reference:
Signed-off-by: H. Peter Anvin -
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
LKML-Reference:
Signed-off-by: H. Peter Anvin -
Currently atomic64_dec_if_positive() is only supported by PowerPC,
MIPS and x86-32.Signed-off-by: Luca Barbieri
LKML-Reference:
Signed-off-by: H. Peter Anvin
26 Feb, 2010
1 commit
-
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
LKML-Reference:
Signed-off-by: H. Peter Anvin