about summary refs log tree commit diff
path: root/nptl/sysdeps/unix/sysv/linux/powerpc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-20 10:28:06 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-20 10:28:06 +0000
commit9daba4f4b988977b01427a47908a0ca4ab717984 (patch)
treed1ae2cd13fc64e2b89f65cc9940f9ab0ae81aa30 /nptl/sysdeps/unix/sysv/linux/powerpc
parent53fcb885017b3c01e960c0ad68616dbad61f9192 (diff)
downloadglibc-9daba4f4b988977b01427a47908a0ca4ab717984.tar.gz
glibc-9daba4f4b988977b01427a47908a0ca4ab717984.tar.xz
glibc-9daba4f4b988977b01427a47908a0ca4ab717984.zip
Replace __lll_add calls with atomic_exchange_and_add calls respectively.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/powerpc')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c b/nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c
index 18029e979d..88acb26e03 100644
--- a/nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c
+++ b/nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c
@@ -88,7 +88,7 @@ __pthread_once (pthread_once_t *once_control, void (*init_routine) (void))
 
 
   /* Add one to *once_control to take the bottom 2 bits from 01 to 10.  */
-  __lll_add (once_control, 1);
+  atomic_exchange_and_add (once_control, 1);
 
   /* Wake up all other threads.  */
   lll_futex_wake (once_control, INT_MAX);