Ver Fonte

sh: Use generic atomic64_t implementation.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Paul Mundt há 16 anos atrás
pai
commit
f01789c688
2 ficheiros alterados com 3 adições e 0 exclusões
  1. 1 0
      arch/sh/Kconfig
  2. 2 0
      arch/sh/include/asm/atomic.h

+ 1 - 0
arch/sh/Kconfig

@@ -16,6 +16,7 @@ config SUPERH
 	select HAVE_ARCH_TRACEHOOK
 	select HAVE_ARCH_TRACEHOOK
 	select HAVE_DMA_API_DEBUG
 	select HAVE_DMA_API_DEBUG
 	select RTC_LIB
 	select RTC_LIB
+	select GENERIC_ATOMIC64
 	help
 	help
 	  The SuperH is a RISC processor targeted for use in embedded systems
 	  The SuperH is a RISC processor targeted for use in embedded systems
 	  and consumer electronics; it was also used in the Sega Dreamcast
 	  and consumer electronics; it was also used in the Sega Dreamcast

+ 2 - 0
arch/sh/include/asm/atomic.h

@@ -85,4 +85,6 @@ static inline int atomic_add_unless(atomic_t *v, int a, int u)
 #define smp_mb__after_atomic_inc()	barrier()
 #define smp_mb__after_atomic_inc()	barrier()
 
 
 #include <asm-generic/atomic-long.h>
 #include <asm-generic/atomic-long.h>
+#include <asm-generic/atomic64.h>
+
 #endif /* __ASM_SH_ATOMIC_H */
 #endif /* __ASM_SH_ATOMIC_H */