From 9daba4f4b988977b01427a47908a0ca4ab717984 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 20 Mar 2003 10:28:06 +0000 Subject: Replace __lll_add calls with atomic_exchange_and_add calls respectively. --- nptl/sysdeps/unix/sysv/linux/sem_post.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nptl/sysdeps/unix/sysv/linux/sem_post.c') diff --git a/nptl/sysdeps/unix/sysv/linux/sem_post.c b/nptl/sysdeps/unix/sysv/linux/sem_post.c index 77defc84f9..2da6ecd696 100644 --- a/nptl/sysdeps/unix/sysv/linux/sem_post.c +++ b/nptl/sysdeps/unix/sysv/linux/sem_post.c @@ -33,7 +33,7 @@ __new_sem_post (sem_t *sem) int err, nr; __asm __volatile (__lll_rel_instr ::: "memory"); - nr = __lll_add (futex, 1); + nr = atomic_exchange_and_add (futex, 1); err = lll_futex_wake (futex, nr); if (err == 0) return 0; -- cgit v1.2.3