[PATCH RFC 3/3] nptl: Include CLOCK_MONOTONIC in mutex tests
Joseph Myers
joseph@codesourcery.com
Mon Jun 21 20:07:39 GMT 2021
On Mon, 21 Jun 2021, Kurt Kanzenbach via Libc-alpha wrote:
> diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
> index 1680b10ca1b6..eb5c4d5a04bd 100644
> --- a/sysdeps/unix/sysv/linux/kernel-features.h
> +++ b/sysdeps/unix/sysv/linux/kernel-features.h
> @@ -218,4 +218,12 @@
> # define __ASSUME_FACCESSAT2 0
> #endif
>
> +/* The FUTEX_LOCK_PI2 operation was introduced across all architectures in Linux
> + 5.14. */
> +#if __LINUX_KERNEL_VERSION >= 0x051400
0x051400 is 5.20.0, not 5.14.0.
I'd expect this change to appear in an earlier patch, with
__ASSUME_FUTEX_LOCK_PI2 conditionals being used to disable fallback
support for kernels found at runtime not to support the new feature.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list