05 Jun, 2014
1 commit
-
Convert printk to current pr_foo() logging functions.
Also add pr_fmt based on KBUILD_MODNAME to avoid repeating prefix. Prefix
is now "atomic64_test: "Signed-off-by: Fabian Frederick
Cc: Luca Barbieri
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
31 Jul, 2012
1 commit
-
Introduce CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE and use this instead
of the multitude of #if defined() checks in atomic64_test.cSigned-off-by: Catalin Marinas
Cc: Russell King
Cc: Ralf Baechle
Cc: Benjamin Herrenschmidt
Cc: Paul Mackerras
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
01 Mar, 2012
1 commit
-
With bug.h currently living right in linux/kernel.h there
are files that use BUG_ON and friends but are not including
the header explicitly. Fix them up so we can remove the
presence in kernel.h file.Signed-off-by: Paul Gortmaker
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