From: Ulrich Drepper Date: Tue, 23 Mar 2004 08:39:26 +0000 (+0000) Subject: Update. X-Git-Tag: upstream/2.20~11100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16b06b70b58461cca36a4aa83559cb89385076ce;p=platform%2Fupstream%2Flinaro-glibc.git Update. 2004-03-23 Ulrich Drepper * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock): Remove unnecessary setne instruction. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 243ad92..e0439e1 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2004-03-23 Ulrich Drepper + + * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_mutex_trylock): + Remove unnecessary setne instruction. + 2004-03-22 Jakub Jelinek * sysdeps/unix/sysv/linux/pthread_getaffinity.c diff --git a/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h b/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h index e420c3f..9f089f8 100644 --- a/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h +++ b/nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 2002. @@ -104,7 +104,7 @@ extern int __lll_mutex_unlock_wake (int *__futex) #define lll_mutex_trylock(futex) \ ({ unsigned char ret; \ - __asm __volatile (LOCK_INSTR "cmpxchgl %2, %1; setne %0" \ + __asm __volatile (LOCK_INSTR "cmpxchgl %2, %1" \ : "=a" (ret), "=m" (futex) \ : "r" (LLL_MUTEX_LOCK_INITIALIZER_LOCKED), "m" (futex),\ "0" (LLL_MUTEX_LOCK_INITIALIZER) \