Commit 64daa4435a40aa1b7d0ece598ae783b89dda13ee

Authored by Kyle McMartin
1 parent 0c5cb79198

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>

Showing 2 changed files with 6 additions and 1 deletions Side-by-side Diff

... ... @@ -17,6 +17,7 @@
17 17 select INIT_ALL_POSSIBLE
18 18 select BUG
19 19 select HAVE_PERF_COUNTERS
  20 + select GENERIC_ATOMIC64 if !64BIT
20 21 help
21 22 The PA-RISC microprocessor is designed by Hewlett-Packard and used
22 23 in many of their workstations & servers (HP9000 700 and 800 series,
arch/parisc/include/asm/atomic.h
... ... @@ -336,7 +336,11 @@
336 336  
337 337 #define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0)
338 338  
339   -#endif /* CONFIG_64BIT */
  339 +#else /* CONFIG_64BIT */
  340 +
  341 +#include <asm-generic/atomic64.h>
  342 +
  343 +#endif /* !CONFIG_64BIT */
340 344  
341 345 #include <asm-generic/atomic-long.h>
342 346