parisc: use generic atomic64 on 32-bit
authorKyle McMartin <kyle@mcmartin.ca>
Thu, 2 Jul 2009 17:10:29 +0000 (13:10 -0400)
committerKyle McMartin <kyle@mcmartin.ca>
Fri, 3 Jul 2009 03:34:13 +0000 (03:34 +0000)
Somewhat redundant since our atomic_t uses hashed-locks on 32-bit
anyway... Maybe we can clean those up to be generic too someday.

Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
arch/parisc/Kconfig
arch/parisc/include/asm/atomic.h

index c38bbc7af793fc2a7c7fb91dd127b579d640bd8f..06f8d5b5b0f96d4bbb30cc5653cc6490d47df93e 100644 (file)
@@ -17,6 +17,7 @@ config PARISC
        select INIT_ALL_POSSIBLE
        select BUG
        select HAVE_PERF_COUNTERS
+       select GENERIC_ATOMIC64 if !64BIT
        help
          The PA-RISC microprocessor is designed by Hewlett-Packard and used
          in many of their workstations & servers (HP9000 700 and 800 series,
index 82e9688f658c1c7a50d85303dd03fa22c9e67480..8bc9e96699b2a690456aa75585a9f89c05cad7bf 100644 (file)
@@ -336,7 +336,11 @@ 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)
 
-#endif /* CONFIG_64BIT */
+#else /* CONFIG_64BIT */
+
+#include <asm-generic/atomic64.h>
+
+#endif /* !CONFIG_64BIT */
 
 #include <asm-generic/atomic-long.h>