linuxkpi: retire now-unused MIPS support
Reviewed by: bz, manu Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37023
This commit is contained in:
parent
a3da8329c5
commit
9f6097d6a6
@ -166,9 +166,7 @@ atomic_cmpxchg(atomic_t *v, int old, int new)
|
||||
#define LINUXKPI_ATOMIC_16(...)
|
||||
#endif
|
||||
|
||||
#if !(defined(i386) || (defined(__mips__) && !(defined(__mips_n32) || \
|
||||
defined(__mips_n64))) || (defined(__powerpc__) && \
|
||||
!defined(__powerpc64__)))
|
||||
#if !(defined(i386) || (defined(__powerpc__) && !defined(__powerpc64__)))
|
||||
#define LINUXKPI_ATOMIC_64(...) __VA_ARGS__
|
||||
#else
|
||||
#define LINUXKPI_ATOMIC_64(...)
|
||||
|
@ -125,8 +125,7 @@ atomic64_fetch_add_unless(atomic64_t *v, int64_t a, int64_t u)
|
||||
static inline int64_t
|
||||
atomic64_xchg(atomic64_t *v, int64_t i)
|
||||
{
|
||||
#if !((defined(__mips__) && !(defined(__mips_n32) || defined(__mips_n64))) || \
|
||||
(defined(__powerpc__) && !defined(__powerpc64__)))
|
||||
#if !(defined(__powerpc__) && !defined(__powerpc64__))
|
||||
return (atomic_swap_64(&v->counter, i));
|
||||
#else
|
||||
int64_t ret = atomic64_read(v);
|
||||
|
Loading…
Reference in New Issue
Block a user