mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
Update x86 elision-conf.c for <cpu-features.h>
This patch updates x86 elision-conf.c to use the newly defined HAS_CPU_FEATURE from <cpu-features.h>. * sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init): Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
This commit is contained in:
parent
1dfa4a94ae
commit
b376899d27
@ -1,3 +1,8 @@
|
||||
2015-08-13 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/x86/elision-conf.c (elision_init):
|
||||
Replace HAS_RTM with HAS_CPU_FEATURE (RTM).
|
||||
|
||||
2015-08-13 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* math/Makefile ($(addprefix $(objpfx), $(libm-vec-tests))):
|
||||
|
@ -62,11 +62,11 @@ elision_init (int argc __attribute__ ((unused)),
|
||||
char **argv __attribute__ ((unused)),
|
||||
char **environ)
|
||||
{
|
||||
__elision_available = HAS_RTM;
|
||||
__elision_available = HAS_CPU_FEATURE (RTM);
|
||||
#ifdef ENABLE_LOCK_ELISION
|
||||
__pthread_force_elision = __libc_enable_secure ? 0 : __elision_available;
|
||||
#endif
|
||||
if (!HAS_RTM)
|
||||
if (!HAS_CPU_FEATURE (RTM))
|
||||
__elision_aconf.retry_try_xbegin = 0; /* Disable elision on rwlocks */
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user