Skip to content

Commit

Permalink
powerpc: Use generic atomic64_t implementation on 32-bit processors
Browse files Browse the repository at this point in the history
This makes 32-bit powerpc use the generic atomic64_t implementation.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Paul Mackerras authored and Benjamin Herrenschmidt committed Jun 15, 2009
1 parent 09d4e0e commit c2e95c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions arch/powerpc/include/asm/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c2e95c6

Please sign in to comment.