[PATCH 4/4] ARM: atomic64_test: add ARM as supported architecture

Nicolas Pitre nico at fluxnic.net
Thu Jul 8 01:50:16 EDT 2010


On Wed, 30 Jun 2010, Will Deacon wrote:

> ARM has support for the atomic64_dec_if_positive operation
> so ensure that it is tested by the atomic64_test routine.
> 
> Cc: Nicolas Pitre <nico at fluxnic.net>
> Signed-off-by: Will Deacon <will.deacon at arm.com>

Acked-by: Nicolas Pitre <nicolas.pitre at linaro.org>

> ---
>  lib/atomic64_test.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/lib/atomic64_test.c b/lib/atomic64_test.c
> index 250ed11..44524cc 100644
> --- a/lib/atomic64_test.c
> +++ b/lib/atomic64_test.c
> @@ -114,7 +114,7 @@ static __init int test_atomic64(void)
>  	BUG_ON(v.counter != r);
>  
>  #if defined(CONFIG_X86) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || \
> -    defined(CONFIG_S390) || defined(_ASM_GENERIC_ATOMIC64_H)
> +    defined(CONFIG_S390) || defined(_ASM_GENERIC_ATOMIC64_H) || defined(CONFIG_ARM)
>  	INIT(onestwos);
>  	BUG_ON(atomic64_dec_if_positive(&v) != (onestwos - 1));
>  	r -= one;
> -- 
> 1.6.3.3
> 



More information about the linux-arm-kernel mailing list