mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-23 13:09:58 +08:00
powerpc: Eliminate UP macro conditionals
The macro is never defined. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
0f34d426ac
commit
d5c4cce9c3
@ -53,14 +53,9 @@ typedef uintmax_t uatomic_max_t;
|
||||
#define __arch_compare_and_exchange_bool_16_acq(mem, newval, oldval) \
|
||||
(abort (), 0)
|
||||
|
||||
#ifdef UP
|
||||
# define __ARCH_ACQ_INSTR ""
|
||||
# define __ARCH_REL_INSTR ""
|
||||
#else
|
||||
# define __ARCH_ACQ_INSTR "isync"
|
||||
# ifndef __ARCH_REL_INSTR
|
||||
# define __ARCH_REL_INSTR "sync"
|
||||
# endif
|
||||
#define __ARCH_ACQ_INSTR "isync"
|
||||
#ifndef __ARCH_REL_INSTR
|
||||
# define __ARCH_REL_INSTR "sync"
|
||||
#endif
|
||||
|
||||
#ifndef MUTEX_HINT_ACQ
|
||||
|
@ -105,9 +105,7 @@
|
||||
/*
|
||||
* "light weight" sync can also be used for the release barrier.
|
||||
*/
|
||||
# ifndef UP
|
||||
# define __ARCH_REL_INSTR "lwsync"
|
||||
# endif
|
||||
# define __ARCH_REL_INSTR "lwsync"
|
||||
# define atomic_write_barrier() __asm ("lwsync" ::: "memory")
|
||||
#else
|
||||
/*
|
||||
|
@ -230,9 +230,7 @@
|
||||
/*
|
||||
* "light weight" sync can also be used for the release barrier.
|
||||
*/
|
||||
#ifndef UP
|
||||
# define __ARCH_REL_INSTR "lwsync"
|
||||
#endif
|
||||
#define __ARCH_REL_INSTR "lwsync"
|
||||
#define atomic_write_barrier() __asm ("lwsync" ::: "memory")
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user