Re: [PATCH v3 1/6] perf bench futex: Add support for 32-bit systems with 64-bit time_t
From: Arnd Bergmann <arnd@arndb.de>
Date: 2021-11-26 07:22:13
Also in:
linux-riscv, lkml
From: Arnd Bergmann <arnd@arndb.de>
Date: 2021-11-26 07:22:13
Also in:
linux-riscv, lkml
On Fri, Nov 26, 2021 at 7:00 AM Alistair Francis [off-list ref] wrote:
From: Alistair Francis <redacted> Some 32-bit architectures (such are 32-bit RISC-V) only have a 64-bit time_t and as such don't have the SYS_futex syscall. This patch will allow us to use the SYS_futex_time64 syscall on those platforms. This also converts the futex calls to be y2038 safe (when built for a 5.1+ kernel). This is a revert of commit ba4026b09d83acf56c040b6933eac7916c27e728 "Revert "perf bench futex: Add support for 32-bit systems with 64-bit time_t"". The original commit was reverted as including linux/time_types.h would fail to compile on older kernels. This commit doesn't include linux/time_types.h to avoid this issue. Signed-off-by: Alistair Francis <redacted>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>