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

Arnd Bergmann arnd at arndb.de
Thu Nov 25 23:19:53 PST 2021


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


Reviewed-by: Arnd Bergmann <arnd at arndb.de>



More information about the linux-riscv mailing list