Re: [PATCH v3 1/6] perf bench futex: Add support for 32-bit systems with 64-bit time_t

From: Arnd Bergmann
Date: Fri Nov 26 2021 - 02:22:14 EST


On Fri, Nov 26, 2021 at 7:00 AM Alistair Francis
<alistair.francis@xxxxxxxxxxxxxxxxxx> wrote:
> From: Alistair Francis <alistair.francis@xxxxxxx>
>
> 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 <alistair.francis@xxxxxxx>


Reviewed-by: Arnd Bergmann <arnd@xxxxxxxx>