aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-11-13 15:19:41 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-11-13 15:20:03 +0100
commit0f34d426acf8950599ab8a1e6a733fe4c40903a4 (patch)
tree4aa6182089282819bfc66ce899056bcb6c1779dc /sysdeps/x86
parent4d5297253e6743f274580c6c8ca14b1f3b04f0e3 (diff)
downloadglibc-0f34d426acf8950599ab8a1e6a733fe4c40903a4.zip
glibc-0f34d426acf8950599ab8a1e6a733fe4c40903a4.tar.gz
glibc-0f34d426acf8950599ab8a1e6a733fe4c40903a4.tar.bz2
x86: Remove UP macro. Define LOCK_PREFIX unconditionally.
The UP macro is never defined. Also define LOCK_PREFIX unconditionally, to the same string. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/x86')
-rw-r--r--sysdeps/x86/atomic-machine.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/sysdeps/x86/atomic-machine.h b/sysdeps/x86/atomic-machine.h
index bb49648..7b3c81e 100644
--- a/sysdeps/x86/atomic-machine.h
+++ b/sysdeps/x86/atomic-machine.h
@@ -49,13 +49,7 @@ typedef intmax_t atomic_max_t;
typedef uintmax_t uatomic_max_t;
-#ifndef LOCK_PREFIX
-# ifdef UP
-# define LOCK_PREFIX /* nothing */
-# else
-# define LOCK_PREFIX "lock;"
-# endif
-#endif
+#define LOCK_PREFIX "lock;"
#define USE_ATOMIC_COMPILER_BUILTINS 1