1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00

Clean up whitespace in lock elision patches.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Dominik Vogt
2013-07-19 05:16:28 +00:00
committed by Carlos O'Donell
parent d3d3ce982a
commit 075b9322c9
15 changed files with 52 additions and 31 deletions

View File

@ -1,5 +1,20 @@
2013-07-19 Dominik Vogt <vogt@de.ibm.com>
* pthread_mutex_lock.c: Fix whitespace.
* pthread_mutex_trylock.c: Likewise.
* sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Likewise.
* sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
* sysdeps/unix/sysv/linux/x86/elision-conf.h: Likewise.
* sysdeps/unix/sysv/linux/x86/elision-lock.c: Likewise.
* sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
* sysdeps/unix/sysv/linux/x86/elision-trylock.c: Likewise.
* sysdeps/unix/sysv/linux/x86/force-elision.h: Likewise.
* sysdeps/unix/sysv/linux/x86/hle.h: Likewise.
* sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
* sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Likewise.
* sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Likewise.
* sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Likewise.
* sysdeps/unix/sysv/linux/x86/elision-conf.c:
Remove __rwlock_rtm_enabled and __rwlock_rtm_read_retries.
(elision_init): Don't set __rwlock_rtm_enabled.

View File

@ -43,7 +43,8 @@ struct elision_config __elision_aconf =
.skip_trylock_internal_abort = 3,
};
/* Set when the CPU supports elision. When false elision is never attempted. */
/* Set when the CPU supports elision. When false elision is never attempted.
*/
int __elision_available attribute_hidden;

View File

@ -24,8 +24,8 @@
#define aconf __elision_aconf
/* Try to elide a futex trylock. FUTEX is the futex variable. ADAPT_COUNT is the
adaptation counter in the mutex. */
/* Try to elide a futex trylock. FUTEX is the futex variable. ADAPT_COUNT is
the adaptation counter in the mutex. */
int
__lll_trylock_elision (int *futex, short *adapt_count)

View File

@ -18,4 +18,5 @@
/* The cond lock is not actually elided yet, but we still need to handle
already elided locks. */
#include <elision-conf.h>
#include "sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c"

View File

@ -15,6 +15,7 @@
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
#include <elision-conf.h>
#include "force-elision.h"

View File

@ -15,6 +15,8 @@
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
#include <elision-conf.h>
#include "force-elision.h"
#include "nptl/pthread_mutex_timedlock.c"

View File

@ -15,6 +15,7 @@
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
#include <elision-conf.h>
#include "force-elision.h"