aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/nptl/lowlevellock-futex.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-06-25 10:11:00 +0200
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-10-01 08:09:13 -0300
commit8352b6df371f1d08f86b4600a7725a5181e021ee (patch)
tree39a3bed73cdf1ec4908fccb4401a83295b74b81c /sysdeps/nptl/lowlevellock-futex.h
parentdd5adb515c105e4ad1619825babe85d75a7a755c (diff)
downloadglibc-8352b6df371f1d08f86b4600a7725a5181e021ee.zip
glibc-8352b6df371f1d08f86b4600a7725a5181e021ee.tar.gz
glibc-8352b6df371f1d08f86b4600a7725a5181e021ee.tar.bz2
nptl: Use FUTEX_LOCK_PI2 when available
This patch uses the new futex PI operation provided by Linux v5.14 when it is required. The futex_lock_pi64() is moved to futex-internal.c (since it used on two different places and its code size might be large depending of the kernel configuration) and clockid is added as an argument. Co-authored-by: Kurt Kanzenbach <kurt@linutronix.de>
Diffstat (limited to 'sysdeps/nptl/lowlevellock-futex.h')
-rw-r--r--sysdeps/nptl/lowlevellock-futex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/nptl/lowlevellock-futex.h b/sysdeps/nptl/lowlevellock-futex.h
index 66ebfe5..abda179 100644
--- a/sysdeps/nptl/lowlevellock-futex.h
+++ b/sysdeps/nptl/lowlevellock-futex.h
@@ -38,6 +38,7 @@
#define FUTEX_WAKE_BITSET 10
#define FUTEX_WAIT_REQUEUE_PI 11
#define FUTEX_CMP_REQUEUE_PI 12
+#define FUTEX_LOCK_PI2 13
#define FUTEX_PRIVATE_FLAG 128
#define FUTEX_CLOCK_REALTIME 256