We don't have 64-bit atomics on powerpc, but we don't really need them.
authorkettenis <kettenis@openbsd.org>
Fri, 14 Jan 2022 15:00:16 +0000 (15:00 +0000)
committerkettenis <kettenis@openbsd.org>
Fri, 14 Jan 2022 15:00:16 +0000 (15:00 +0000)
commit36ce76eeb31e921e1b27e4b9c34b1bce20fdcdd5
treef2eb57ba1d167505a063b92019e8a1a25cd46bef
parente304febbdb12df3a33b34960143cb527e0e8069e
We don't have 64-bit atomics on powerpc, but we don't really need them.
So don't provide atomic64_cmpxchg() on powerpc and on other architectures
make its implementation similar to atomic64_xchg().
This makes the tree build again on macppc.

suggested by & ok jsg@
sys/dev/pci/drm/include/linux/atomic.h