powerpc: Use generic atomic64_t implementation on 32-bit processors
Subsystems (2)
PATCH 2/2 powerpc: Use generic atomic64_t implementation on 32-bit processors
Quoted 1 line
From
02fccb02e29bc24e84a5b2ea6ea5d63779247408Mon Sep 17 00:00:00 2001
From: Paul Mackerras <[email protected]>
Date: Sat, 13 Jun 2009 16:24:03 +1000
Subject:
This makes 32-bit powerpc use the generic atomic64_t implementation.
Signed-off-by Paul Mackerras <[email protected]>
--- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/atomic.h | 3 +++ 2 files changed, 4 insertions(+), 0 deletions(-)
arch/powerpc/Kconfig +1 -0
@@ -125,6 +125,7 @@ config PPC select USE_GENERIC_SMP_HELPERS if SMP select HAVE_OPROFILE select HAVE_SYSCALL_WRAPPERS if PPC64 + select GENERIC_ATOMIC64 if PPC32 config EARLY_PRINTK bool
arch/powerpc/include/asm/atomic.h +3 -0
@@ -470,6 +470,9 @@ static __inline__ int atomic64_add_unless(atomic64_t *v, long a, long u)#define atomic64_inc_not_zero (v) atomic64_add_unless((v), 1, 0) +#else /* __powerpc64__ */ +#include <asm-generic/atomic64.h> +#endif /* __powerpc64__ */ #include <asm-generic/atomic-long.h>
Signature · 1 line
1.6.0.4