about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/powerpc/sem_post.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-10-06 16:08:32 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-10-06 16:08:32 -0500
commit47d4623785559a031ce33b266d1f9b5a2fd24d47 (patch)
tree1ee3175691a976d36c0c28786b6c46aa469be234 /sysdeps/unix/sysv/linux/powerpc/sem_post.c
parent563a74d86ca2be355e6842b6fe15c33c42a5fab7 (diff)
downloadglibc-47d4623785559a031ce33b266d1f9b5a2fd24d47.tar.gz
glibc-47d4623785559a031ce33b266d1f9b5a2fd24d47.tar.xz
glibc-47d4623785559a031ce33b266d1f9b5a2fd24d47.zip
powerpc: remove linux lowlevellock.h
This patch remove the powerpc specific lowlevellock.h and adjust some
implementation that rely on __lll_[rel/acq]_instr defines.
Diffstat (limited to 'sysdeps/unix/sysv/linux/powerpc/sem_post.c')
-rw-r--r--sysdeps/unix/sysv/linux/powerpc/sem_post.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/powerpc/sem_post.c b/sysdeps/unix/sysv/linux/powerpc/sem_post.c
index f222d9a69c..831a8dd4de 100644
--- a/sysdeps/unix/sysv/linux/powerpc/sem_post.c
+++ b/sysdeps/unix/sysv/linux/powerpc/sem_post.c
@@ -30,9 +30,9 @@ __new_sem_post (sem_t *sem)
 {
   struct new_sem *isem = (struct new_sem *) sem;
 
-  __asm __volatile (__lll_rel_instr ::: "memory");
+  __asm __volatile (__ARCH_REL_INSTR ::: "memory");
   atomic_increment (&isem->value);
-  __asm __volatile (__lll_acq_instr ::: "memory");
+  __asm __volatile (__ARCH_ACQ_INSTR ::: "memory");
   if (isem->nwaiters > 0)
     {
       int err = lll_futex_wake (&isem->value, 1,
@@ -55,7 +55,7 @@ __old_sem_post (sem_t *sem)
 {
   int *futex = (int *) sem;
 
-  __asm __volatile (__lll_rel_instr ::: "memory");
+  __asm __volatile (__ARCH_REL_INSTR ::: "memory");
   (void) atomic_increment_val (futex);
   /* We always have to assume it is a shared semaphore.  */
   int err = lll_futex_wake (futex, 1, LLL_SHARED);