Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-07-30 | atomic64_test: simplify the #ifdef for atomic64_dec_if_positive() test | Catalin Marinas | 1 | -3/+2 | |
Introduce CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE and use this instead of the multitude of #if defined() checks in atomic64_test.c Signed-off-by: Catalin Marinas <[email protected]> Cc: Russell King <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> | |||||
2012-02-29 | bug.h: add include of it to various implicit C users | Paul Gortmaker | 1 | -0/+1 | |
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 <[email protected]> | |||||
2011-07-26 | atomic: use <linux/atomic.h> | Arun Sharma | 1 | -1/+1 | |
This allows us to move duplicated code in <asm/atomic.h> (atomic_inc_not_zero() for now) to <linux/atomic.h> Signed-off-by: Arun Sharma <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: David Miller <[email protected]> Cc: Eric Dumazet <[email protected]> Acked-by: Mike Frysinger <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> | |||||
2010-07-27 | ARM: 6213/1: atomic64_test: add ARM as supported architecture | Will Deacon | 1 | -1/+1 | |
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 <[email protected]> Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Russell King <[email protected]> | |||||
2010-06-04 | lib: add s390 to atomic64_dec_if_positive archs | Heiko Carstens | 1 | -1/+2 | |
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 above Signed-off-by: Heiko Carstens <[email protected]> Cc: Luca Barbieri <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> | |||||
2010-05-24 | lib/atomic64_test: fix missing include of linux/kernel.h | Peter Huewe | 1 | -0/+1 | |
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 <[email protected]> LKML-Reference: <[email protected]> Cc: Luca Barbieri <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]> | |||||
2010-03-01 | x86, atomic64: In selftest, distinguish x86-64 from 586+ | H. Peter Anvin | 1 | -6/+8 | |
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 <[email protected]> Cc: Luca Barbieri <[email protected]> LKML-Reference: <[email protected]> | |||||
2010-03-01 | lib: Fix atomic64_inc_not_zero test | Luca Barbieri | 1 | -3/+3 | |
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 <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]> | |||||
2010-03-01 | lib: Fix atomic64_add_unless test | Luca Barbieri | 1 | -2/+2 | |
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 <[email protected]> Signed-off-by: Luca Barbieri <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]> | |||||
2010-03-01 | x86: Implement atomic[64]_dec_if_positive() | Luca Barbieri | 1 | -1/+1 | |
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 <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]> | |||||
2010-03-01 | lib: Only test atomic64_dec_if_positive on archs having it | Luca Barbieri | 1 | -0/+4 | |
Currently atomic64_dec_if_positive() is only supported by PowerPC, MIPS and x86-32. Signed-off-by: Luca Barbieri <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]> | |||||
2010-02-25 | lib: Add self-test for atomic64_t | Luca Barbieri | 1 | -0/+158 | |
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 <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: H. Peter Anvin <[email protected]> |