aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include
diff options
context:
space:
mode:
authorKyle McMartin <kyle@mcmartin.ca>2009-07-02 13:10:29 -0400
committerKyle McMartin <kyle@mcmartin.ca>2009-07-03 03:34:13 +0000
commit64daa4435a40aa1b7d0ece598ae783b89dda13ee (patch)
tree71abe6db527dfb63af09d683b37fdf02d9075c4f /arch/parisc/include
parent0c5cb79198d80eaea273f3e91cb418d559f13462 (diff)
downloadkernel_samsung_smdk4412-64daa4435a40aa1b7d0ece598ae783b89dda13ee.zip
kernel_samsung_smdk4412-64daa4435a40aa1b7d0ece598ae783b89dda13ee.tar.gz
kernel_samsung_smdk4412-64daa4435a40aa1b7d0ece598ae783b89dda13ee.tar.bz2
parisc: use generic atomic64 on 32-bit
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>
Diffstat (limited to 'arch/parisc/include')
-rw-r--r--arch/parisc/include/asm/atomic.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/atomic.h b/arch/parisc/include/asm/atomic.h
index 82e9688..8bc9e96 100644
--- a/arch/parisc/include/asm/atomic.h
+++ b/arch/parisc/include/asm/atomic.h
@@ -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>