summaryrefslogtreecommitdiff
path: root/sysdeps/csky/atomic-machine.h
diff options
context:
space:
mode:
authorWilco Dijkstra <Wilco.Dijkstra@arm.com>2025-09-11 08:26:33 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-09-11 14:44:03 -0300
commitb56b58d91b33a9a96aef7c0c2ff9b4011a86804f (patch)
tree598eba1ff9e6996e9bab466d0fe2704ec5df34bd /sysdeps/csky/atomic-machine.h
parent2efaa6267af06bdaee51e697b12f010b8eb39bb0 (diff)
nptl: Remove ATOMIC_EXCHANGE_USES_CAS usageazanella/atomic-cleanup
The only usage was for pthread_spin_lock, introduced by 12d2dd706099aa4, as a way to optimize the code for certain architectures. Now that atomic builtins are used by default, let the compiler use the best code sequence for the atomic exchange. Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/csky/atomic-machine.h')
-rw-r--r--sysdeps/csky/atomic-machine.h24
1 files changed, 0 insertions, 24 deletions
diff --git a/sysdeps/csky/atomic-machine.h b/sysdeps/csky/atomic-machine.h
deleted file mode 100644
index 84468cd66e..0000000000
--- a/sysdeps/csky/atomic-machine.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Atomic operations. C-SKY version.
- Copyright (C) 2018-2025 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <https://www.gnu.org/licenses/>. */
-
-#ifndef __CSKY_ATOMIC_H_
-#define __CSKY_ATOMIC_H_
-
-#define ATOMIC_EXCHANGE_USES_CAS 1
-
-#endif /* atomic-machine.h */