diff options
Diffstat (limited to 'meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch')
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch b/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch index 3244ab8da2..3840472213 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch | |||
@@ -1,14 +1,22 @@ | |||
1 | Use SYS_futex for syscall | 1 | From 166811dfcfc61e7646275aa993d7d7f4b02d1f49 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 3 Apr 2021 12:40:14 -0700 | ||
4 | Subject: [PATCH] Use SYS_futex for syscall | ||
2 | 5 | ||
3 | glibc defines SYS_futex and on newer 32bit CPUs like RISCV-32, arc there | 6 | glibc defines SYS_futex and on newer 32bit CPUs like RISCV-32, arc there |
4 | is no 32bit time_t therefore define SYS_futex in terms of SYS_futex_time64 | 7 | is no 32bit time_t therefore define SYS_futex in terms of SYS_futex_time64 |
5 | 8 | ||
6 | Upstream-Status: Pending | 9 | Upstream-Status: Pending |
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
11 | --- | ||
12 | storage/innobase/sync/srw_lock.cc | 6 ++++++ | ||
13 | 1 file changed, 6 insertions(+) | ||
8 | 14 | ||
15 | diff --git a/storage/innobase/sync/srw_lock.cc b/storage/innobase/sync/srw_lock.cc | ||
16 | index 28b586de..3ee71142 100644 | ||
9 | --- a/storage/innobase/sync/srw_lock.cc | 17 | --- a/storage/innobase/sync/srw_lock.cc |
10 | +++ b/storage/innobase/sync/srw_lock.cc | 18 | +++ b/storage/innobase/sync/srw_lock.cc |
11 | @@ -210,6 +210,12 @@ void ssux_lock_low::wake() { WakeByAddre | 19 | @@ -226,6 +226,12 @@ void ssux_lock_impl<spinloop>::wake() noexcept { WakeByAddressSingle(&readers); |
12 | # ifdef __linux__ | 20 | # ifdef __linux__ |
13 | # include <linux/futex.h> | 21 | # include <linux/futex.h> |
14 | # include <sys/syscall.h> | 22 | # include <sys/syscall.h> |